Skip to content

Commit

Permalink
Clear the Marker relationships when clearing the SceneGraph.
Browse files Browse the repository at this point in the history
Fix bug; The marker "links" to bundles and cameras were not
cleared when the SceneGraph.clear() was called.
These are now cleared as expected.

Issue #114
  • Loading branch information
david-cattermole committed Dec 28, 2021
1 parent b16ef32 commit befa95b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mmscenegraph/rust/src/scene/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ impl SceneGraph {
self.mkr_indices.clear();
self.bnd_indices.clear();
self.cam_indices.clear();

self.mkr_to_cam_node_ids.clear();
self.mkr_to_bnd_node_ids.clear();
}

pub fn create_transform_node(
Expand Down

0 comments on commit befa95b

Please sign in to comment.