New feature to select all objects in same container

This commit is contained in:
Dion Moult
2021-11-07 17:02:05 +11:00
parent 05068754b9
commit 61e510e45c
9 changed files with 71 additions and 0 deletions
+10
View File
@@ -103,3 +103,13 @@ class TestSelectContainer:
ifc.get_object("container").should_be_called().will_return("container_obj")
spatial.set_active_object("container_obj").should_be_called()
subject.select_container(ifc, spatial, obj="obj")
class TestSelectSimilarContainer:
def test_run(self, ifc, spatial):
ifc.get_entity("obj").should_be_called().will_return("element")
spatial.get_container("element").should_be_called().will_return("container")
spatial.get_decomposed_elements("container").should_be_called().will_return(["contained_element"])
ifc.get_object("contained_element").should_be_called().will_return("contained_obj")
spatial.select_object("contained_obj").should_be_called()
subject.select_similar_container(ifc, spatial, obj="obj")