From ab384ba8ec7b1e1ed7afd4e510f89d8eade6c94c Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 28 Jun 2017 17:16:27 +0200 Subject: [PATCH] Rename and invert moving disallowed areas metadata property It's more easy semantically to invert this, to prevent the double negatives. Contributes to issue CURA-3663. --- cura/BuildVolume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 33927c4a98..2ad3f4dda1 100755 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -718,8 +718,8 @@ class BuildVolume(SceneNode): # For certain machines we don't need to compute disallowed areas for each nozzle. # So we check here and only do the nozzle offsetting if needed. - no_nozzle_offsetting_for_disallowed_areas = self._global_container_stack.getMetaDataEntry( - "no_nozzle_offsetting_for_disallowed_areas", False) + nozzle_offsetting_for_disallowed_areas = self._global_container_stack.getMetaDataEntry( + "nozzle_offsetting_for_disallowed_areas", True) result = {} for extruder in used_extruders: @@ -742,7 +742,7 @@ class BuildVolume(SceneNode): bottom_unreachable_border = 0 # Only do nozzle offsetting if needed - if not no_nozzle_offsetting_for_disallowed_areas: + if nozzle_offsetting_for_disallowed_areas: #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")