Skip to content

Commit fb807a0

Browse files
committed
restore clear
1 parent 7cf5669 commit fb807a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compas/scene/scene.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def __init__(self, name="Scene", context=None):
7474
@property
7575
def objects(self):
7676
# type: () -> list[SceneObject]
77-
# this is flagged by the type checker
78-
# because the tree returns nodes of type TreeNode
7977
return [node for node in self.nodes if not node.is_root] # type: ignore
8078

8179
def add(self, item, parent=None, **kwargs):
@@ -114,9 +112,12 @@ def clear(self):
114112
# type: () -> None
115113
"""Clear everything from the current context of the scene."""
116114

115+
clear()
116+
117117
def clear_objects(self):
118118
# type: () -> None
119119
"""Clear all objects inside the scene."""
120+
120121
guids = []
121122
for sceneobject in self.objects:
122123
guids += sceneobject.guids

0 commit comments

Comments
 (0)