Commit 6a26364 1 parent 0921009 commit 6a26364 Copy full SHA for 6a26364
File tree 1 file changed +9
-4
lines changed
crates/viewer/re_space_view_spatial/src/visualizers
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -78,17 +78,22 @@ impl VisualizerSystem for Transform3DArrowsVisualizer {
78
78
continue ;
79
79
} ;
80
80
81
+ let results = data_result
82
+ . latest_at_with_blueprint_resolved_data :: < Transform3D > ( ctx, & latest_at_query) ;
83
+ let axis_length: f32 = results. get_mono_with_fallback :: < AxisLength > ( ) . into ( ) ;
84
+
85
+ if axis_length == 0.0 {
86
+ // Don't draw axis and don't add to the bounding box!
87
+ continue ;
88
+ }
89
+
81
90
// Only add the center to the bounding box - the lines may be dependent on the bounding box, causing a feedback loop otherwise.
82
91
self . 0 . add_bounding_box (
83
92
data_result. entity_path . hash ( ) ,
84
93
re_math:: BoundingBox :: ZERO ,
85
94
world_from_obj,
86
95
) ;
87
96
88
- let results = data_result
89
- . latest_at_with_blueprint_resolved_data :: < Transform3D > ( ctx, & latest_at_query) ;
90
- let axis_length = results. get_mono_with_fallback :: < AxisLength > ( ) . into ( ) ;
91
-
92
97
add_axis_arrows (
93
98
& mut line_builder,
94
99
world_from_obj,
You can’t perform that action at this time.
0 commit comments