calculate hierarchical data on model resource instantiation
@@ -96,6 +96,9 @@ impl Model {
dest_graph[new].original_handle_in_resource = old;
}
+ // Make sure to calculate global transforms (and other stuff) of newly instantiated nodes.
+ dest_graph.update_hierarchical_data();
+
(root, old_to_new)
}
