From 9b379404d613d212a81ab436e8d85acf2dc26356 Mon Sep 17 00:00:00 2001
From: Antoine Beyeler <49431240+abey79@users.noreply.github.com>
Date: Wed, 21 Feb 2024 15:02:29 +0100
Subject: [PATCH] Don't show the blueprint section when selecting recordings
(#5245)
### What
Before/after:
### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using newly built examples:
[app.rerun.io](https://app.rerun.io/pr/5245/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/5245/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/5245/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!
- [PR Build Summary](https://build.rerun.io/pr/5245)
- [Docs
preview](https://rerun.io/preview/f99b4fceb456be7d3b3d304a7d469dee7f1c8a3e/docs)
- [Examples
preview](https://rerun.io/preview/f99b4fceb456be7d3b3d304a7d469dee7f1c8a3e/examples)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
---
crates/re_viewer/src/ui/selection_panel.rs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/crates/re_viewer/src/ui/selection_panel.rs b/crates/re_viewer/src/ui/selection_panel.rs
index 2963a5097195..7a76043664f4 100644
--- a/crates/re_viewer/src/ui/selection_panel.rs
+++ b/crates/re_viewer/src/ui/selection_panel.rs
@@ -793,7 +793,7 @@ fn show_list_item_for_container_child(
fn has_blueprint_section(item: &Item) -> bool {
match item {
- Item::ComponentPath(_) | Item::Container(_) => false,
+ Item::StoreId(_) | Item::ComponentPath(_) | Item::Container(_) => false,
Item::InstancePath(space_view_id, instance_path) => {
space_view_id.is_some() && instance_path.instance_key.is_splat()
}
@@ -1314,12 +1314,12 @@ fn depth_from_world_scale_ui(ui: &mut egui::Ui, property: &mut EditableAutoValue
let mut value = *property.get();
let speed = (value * 0.05).at_least(0.01);
let response = ui
- .add(
- egui::DragValue::new(&mut value)
- .clamp_range(0.0..=1.0e8)
- .speed(speed),
- )
- .on_hover_text("How many steps in the depth image correspond to one world-space unit. For instance, 1000 means millimeters.\n\
+ .add(
+ egui::DragValue::new(&mut value)
+ .clamp_range(0.0..=1.0e8)
+ .speed(speed),
+ )
+ .on_hover_text("How many steps in the depth image correspond to one world-space unit. For instance, 1000 means millimeters.\n\
Double-click to reset.");
if response.double_clicked() {
// reset to auto - the exact value will be restored somewhere else