mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Make machine_nozzle_offset is not None before using it
CURA-4053
This commit is contained in:
parent
afe5f56862
commit
e6ce98b36d
1 changed files with 6 additions and 1 deletions
|
@ -746,7 +746,12 @@ class BuildVolume(SceneNode):
|
|||
#The build volume is defined as the union of the area that all extruders can reach, so we need to know the relative offset to all extruders.
|
||||
for other_extruder in ExtruderManager.getInstance().getActiveExtruderStacks():
|
||||
other_offset_x = other_extruder.getProperty("machine_nozzle_offset_x", "value")
|
||||
other_offset_y = -other_extruder.getProperty("machine_nozzle_offset_y", "value")
|
||||
if other_offset_x is None:
|
||||
other_offset_x = 0
|
||||
other_offset_y = other_extruder.getProperty("machine_nozzle_offset_y", "value")
|
||||
if other_offset_y is None:
|
||||
other_offset_y = 0
|
||||
other_offset_y = -other_offset_y
|
||||
left_unreachable_border = min(left_unreachable_border, other_offset_x - offset_x)
|
||||
right_unreachable_border = max(right_unreachable_border, other_offset_x - offset_x)
|
||||
top_unreachable_border = min(top_unreachable_border, other_offset_y - offset_y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue