Perobject settings now use correct stacks to calculate values

CURA-1754
This commit is contained in:
Jaime van Kessel 2016-07-29 15:19:50 +02:00
parent 6f46ed35fc
commit 7ff1b937e3
2 changed files with 6 additions and 2 deletions

View file

@ -212,7 +212,7 @@ class StartSliceJob(Job):
def _handlePerObjectSettings(self, node, message):
stack = node.callDecoration("getStack")
# 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():
if stack:
# Because we want to use inheritance correctly, we send all settings as seen from the per object stack.
for key in stack.getAllKeys():
setting = message.addRepeatedMessage("settings")