Fixed crash when adding a single extrusion printer

CURA-3980
This commit is contained in:
Jaime van Kessel 2017-06-29 10:15:29 +02:00
parent e9d2434c41
commit 13f3477288

View file

@ -727,9 +727,11 @@ class BuildVolume(SceneNode):
offset_x = extruder.getProperty("machine_nozzle_offset_x", "value")
if offset_x is None:
offset_x = 0
offset_y = -extruder.getProperty("machine_nozzle_offset_y", "value")
offset_y = extruder.getProperty("machine_nozzle_offset_y", "value")
if offset_y is None:
offset_y = 0
else:
offset_y = -offset_y
result[extruder_id] = []
for polygon in machine_disallowed_polygons: