mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:39:04 +08: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
@ -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…
x
Reference in New Issue
Block a user