You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow root space views transforms to other roots (#1075)
* Allow adding entities from arbitrary space paths
Fix bug in space info reachability check (which drives the entity picker)
* improve group naming for now unrestricted object addings
Copy file name to clipboardExpand all lines: crates/re_viewer/src/misc/space_info.rs
+43-28Lines changed: 43 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ impl SpaceInfo {
98
98
/// Information about all spaces.
99
99
///
100
100
/// This is gathered by analyzing the transform hierarchy of the entities:
101
-
/// For every child of the root there is a space info.
101
+
/// For every child of the root there is a space info, as well as the root itself.
102
102
/// Each of these we walk down recursively, every time a transform is encountered, we create another space info.
103
103
///
104
104
/// Expected to be recreated every frame (or whenever new data is available).
@@ -163,20 +163,39 @@ impl SpaceInfoCollection {
163
163
164
164
letmut spaces_info = Self::default();
165
165
166
+
// The root itself.
167
+
// To make our heuristics work we pretend direct child of the root has a transform,
168
+
// breaking the pattern applied for everything else where we create a SpaceInfo once we hit a transform.
169
+
//
170
+
// TODO(andreas): Our dependency on SpaceInfo in this way is quite telling - we should be able to create a SpaceView without having a corresponding SpaceInfo
171
+
// Currently too many things depend on every SpaceView being backed up by a concrete SpaceInfo on its space path.
"No entity path connection from this space view.",
47
+
Self::UnknownSpaceInfo =>
48
+
"Can't determine transform because internal data structures are not in a valid state. Please file an issue on https://github.com/rerun-io/rerun/",
50
49
Self::NestedPinholeCameras =>
51
50
"Can't display entities under nested pinhole cameras.",
0 commit comments