WARNING: Remove collection syncing. The outliner no longer is used to change spatial hierarchy.

This is a BREAKING change (on purpose). If you want to change containment / aggregation, use the UI panels, not drag and drop on the outliner.
This commit is contained in:
Dion Moult
2024-06-07 22:55:11 +10:00
parent db98f13982
commit e3cb811225
12 changed files with 62 additions and 92 deletions
-2
View File
@@ -80,7 +80,6 @@ class TestRemoveContainer:
class TestCopyToContainer:
def test_run(self, ifc, collector, spatial):
ifc.get_entity("obj").should_be_called().will_return("element")
collector.sync("obj").should_be_called()
spatial.get_container("element").should_be_called().will_return("container")
ifc.get_object("container").should_be_called().will_return("container_obj")
spatial.get_relative_object_matrix("obj", "container_obj").should_be_called().will_return("matrix")
@@ -97,7 +96,6 @@ class TestCopyToContainer:
def test_using_an_absolute_matrix_if_there_is_no_from_container(self, ifc, collector, spatial):
ifc.get_entity("obj").should_be_called().will_return("element")
collector.sync("obj").should_be_called()
spatial.get_container("element").should_be_called().will_return(None)
spatial.get_object_matrix("obj").should_be_called().will_return("matrix")