mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
CURA-4400 Apply correct shader to grouped nodes
This commit is contained in:
parent
5993847c4a
commit
9dc50ec73f
2 changed files with 10 additions and 5 deletions
|
@ -238,7 +238,16 @@ class BuildVolume(SceneNode):
|
|||
|
||||
# Group nodes should override the _outside_buildarea property of their children.
|
||||
for group_node in group_nodes:
|
||||
for child_node in group_node.getAllChildren():
|
||||
children = group_node.getAllChildren()
|
||||
|
||||
# Check if one or more children are non-printable and if so, set the parent as non-printable:
|
||||
for child_node in children:
|
||||
if child_node.isOutsideBuildArea():
|
||||
group_node.setOutsideBuildArea(True)
|
||||
break
|
||||
|
||||
# Apply results of the check to all children of the group:
|
||||
for child_node in children:
|
||||
child_node.setOutsideBuildArea(group_node.isOutsideBuildArea())
|
||||
|
||||
## Update the outsideBuildArea of a single node, given bounds or current build volume
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue