Fix check for if nozzle offset exists

Because an offset of 0 results in False as well.

Contributes to issue CURA-2625.
This commit is contained in:
Ghostkeeper 2016-11-17 09:54:00 +01:00
parent 8879021d53
commit 41825231ad
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -559,10 +559,10 @@ class BuildVolume(SceneNode):
for extruder in used_extruders:
extruder_id = extruder.getId()
offset_x = extruder.getProperty("machine_nozzle_offset_x", "value")
if not offset_x:
if offset_x is None:
offset_x = 0
offset_y = extruder.getProperty("machine_nozzle_offset_y", "value")
if not offset_y:
if offset_y is None:
offset_y = 0
result[extruder_id] = []