Skip to content

Commit aa09fe4

Browse files
authored
Fix objects with transform only missing in arrow and selection history prune crash (#844)
* Fix objects with transform only not being added to scenes in arrow * Fix selection history prune causing crashes
1 parent 2ad4848 commit aa09fe4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/re_viewer/src/ui/selection_history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl SelectionHistory {
4545
.collect::<Vec<_>>();
4646

4747
if valid_elements.is_empty() {
48-
if i < self.current {
48+
if i <= self.current {
4949
self.current -= 1; // Ensure the current counter stays valid!
5050
}
5151
None

crates/re_viewer/src/ui/view_category.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use re_log_types::{
55
Box3D, LineStrip2D, LineStrip3D, Point2D, Point3D, Rect2D, Tensor, TensorTrait, TextEntry,
66
},
77
msg_bundle::Component,
8-
Arrow3D, DataPath, Mesh3D,
8+
Arrow3D, DataPath, Mesh3D, Transform,
99
};
1010
use re_query::query_entity_with_primary;
1111

@@ -131,6 +131,7 @@ pub fn categorize_arrow_obj_path(
131131
|| component == LineStrip3D::name()
132132
|| component == Mesh3D::name()
133133
|| component == Arrow3D::name()
134+
|| component == Transform::name()
134135
{
135136
set.insert(ViewCategory::Spatial);
136137
} else if component == Tensor::name() {

0 commit comments

Comments
 (0)