Fix getting proper container stack in decorator

Using the filter function now but the resulting list wasn't properly accounted for.

Contributes to issue CURA-340.
This commit is contained in:
Ghostkeeper 2016-06-10 12:48:41 +02:00
parent 179b6eeaac
commit df1ca39c7b
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -61,7 +61,7 @@ class SettingOverrideDecorator(SceneNodeDecorator):
if self._extruder_stack:
extruder_stack = ContainerRegistry.getInstance().findContainerStacks(id = self._extruder_stack)
if extruder_stack:
self._stack.setNextStack(extruder_stack)
self._stack.setNextStack(extruder_stack[0])
else:
UM.Logger.log("e", "Extruder stack %s below per-object settings does not exist.", self._extruder_stack)
else: