@@ -22,7 +22,7 @@ use re_viewer_context::{
2222} ;
2323use re_viewport_blueprint:: ViewProperty ;
2424
25- use crate :: contexts:: { TransformTreeContext , UNKNOWN_SPACE_ORIGIN , register_spatial_contexts} ;
25+ use crate :: contexts:: register_spatial_contexts;
2626use crate :: heuristics:: default_visualized_entities_for_visualizer_kind;
2727use crate :: shared_fallbacks;
2828use crate :: spatial_topology:: { HeuristicHints , SpatialTopology , SubSpaceConnectionFlags } ;
@@ -244,24 +244,6 @@ impl ViewClass for SpatialView3D {
244244 } ,
245245 ) ;
246246
247- system_registry. register_fallback_provider (
248- SpatialInformation :: descriptor_target_frame ( ) . component ,
249- |ctx| {
250- let unknown_space_origin = || TransformFrameId ( UNKNOWN_SPACE_ORIGIN . into ( ) ) ;
251-
252- let Ok ( state) = ctx. view_state ( ) . downcast_ref :: < SpatialViewState > ( ) else {
253- return unknown_space_origin ( ) ;
254- } ;
255-
256- // Return the computed target frame from the view state
257- state
258- . target_frame
259- . as_ref ( )
260- . map ( |frame_str| TransformFrameId ( frame_str. clone ( ) . into ( ) ) )
261- . unwrap_or_else ( unknown_space_origin)
262- } ,
263- ) ;
264-
265247 shared_fallbacks:: register_fallbacks ( system_registry) ;
266248
267249 // Ensure spatial topology is registered.
@@ -549,11 +531,6 @@ impl ViewClass for SpatialView3D {
549531 let state = state. downcast_mut :: < SpatialViewState > ( ) ?;
550532 state. update_frame_statistics ( ui, & system_output, SpatialViewKind :: ThreeD ) ;
551533
552- // Store the target frame for display in the selection panel
553- if let Ok ( transforms) = system_output. context_systems . get :: < TransformTreeContext > ( ) {
554- state. target_frame = Some ( transforms. format_frame ( transforms. target_frame ( ) ) ) ;
555- }
556-
557534 self . view_3d ( ctx, ui, state, query, system_output)
558535 }
559536}
0 commit comments