Build volume no longer gives issue if -1 is provided as an int

CURA-3814
This commit is contained in:
Jaime van Kessel 2017-05-22 13:22:03 +02:00
parent a13ec0072f
commit 4d853d5d52

View file

@ -871,7 +871,7 @@ class BuildVolume(SceneNode):
else:
extruder_index = self._global_container_stack.getProperty(extruder_setting_key, "value")
if extruder_index == "-1": # If extruder index is -1 use global instead
if str(extruder_index) == "-1": # If extruder index is -1 use global instead
stack = self._global_container_stack
else:
extruder_stack_id = ExtruderManager.getInstance().extruderIds[str(extruder_index)]