mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Fix updating allowed areas. CURA-3610
This commit is contained in:
parent
0655771cb8
commit
da5288ea78
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@ class BuildVolume(SceneNode):
|
||||||
new_scene_objects = set(node for node in BreadthFirstIterator(root) if node.getMeshData() and type(node) is SceneNode)
|
new_scene_objects = set(node for node in BreadthFirstIterator(root) if node.getMeshData() and type(node) is SceneNode)
|
||||||
if new_scene_objects != self._scene_objects:
|
if new_scene_objects != self._scene_objects:
|
||||||
for node in new_scene_objects - self._scene_objects: #Nodes that were added to the scene.
|
for node in new_scene_objects - self._scene_objects: #Nodes that were added to the scene.
|
||||||
node.decoratorsChanged.connect(self._onNodeDecoratorChanged)
|
self._onNodeDecoratorChanged(node)
|
||||||
|
node.decoratorsChanged.connect(self._onNodeDecoratorChanged) # Make sure that decoration changes afterwards also receive the same treatment
|
||||||
for node in self._scene_objects - new_scene_objects: #Nodes that were removed from the scene.
|
for node in self._scene_objects - new_scene_objects: #Nodes that were removed from the scene.
|
||||||
per_mesh_stack = node.callDecoration("getStack")
|
per_mesh_stack = node.callDecoration("getStack")
|
||||||
if per_mesh_stack:
|
if per_mesh_stack:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue