mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
When sending per object settings, we now also check if we need to send anything at all
Adding a setting and then removing it caused some weird behavior issues CURA-1988
This commit is contained in:
parent
4b9a78624d
commit
467f971dac
1 changed files with 3 additions and 1 deletions
|
@ -211,7 +211,9 @@ class StartSliceJob(Job):
|
||||||
|
|
||||||
def _handlePerObjectSettings(self, node, message):
|
def _handlePerObjectSettings(self, node, message):
|
||||||
stack = node.callDecoration("getStack")
|
stack = node.callDecoration("getStack")
|
||||||
if stack:
|
# Check if the node has a stack attached to it and the stack has any settings in the top container.
|
||||||
|
if stack and stack.getTop().getAllKeys():
|
||||||
|
# Because we want to use inheritance correctly, we send all settings as seen from the per object stack.
|
||||||
for key in stack.getAllKeys():
|
for key in stack.getAllKeys():
|
||||||
setting = message.addRepeatedMessage("settings")
|
setting = message.addRepeatedMessage("settings")
|
||||||
setting.name = key
|
setting.name = key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue