We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14607e commit 105a552Copy full SHA for 105a552
tests/compas/scene/test_scene.py
@@ -99,3 +99,15 @@ def test_sceneobject_transform():
99
sceneobj3.worldtransformation
100
== sceneobj1.frame.to_transformation() * sceneobj2.frame.to_transformation() * sceneobj3.frame.to_transformation() * sceneobj3.transformation
101
)
102
+
103
+ def test_scene_clear():
104
+ scene = Scene()
105
+ sceneobj1 = scene.add(Box())
106
+ sceneobj2 = scene.add(Box(), parent=sceneobj1)
107
+ sceneobj3 = scene.add(Box(), parent=sceneobj2)
108
109
+ assert len(scene.objects) == 3
110
111
+ scene.clear(clear_context=False, clear_scene=True)
112
113
+ assert len(scene.objects) == 0
0 commit comments