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.
This commit is contained in:
Ghostkeeper 2017-06-28 17:16:27 +02:00
parent 16564b3194
commit ab384ba8ec
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -718,8 +718,8 @@ class BuildVolume(SceneNode):
# For certain machines we don't need to compute disallowed areas for each nozzle. # 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. # So we check here and only do the nozzle offsetting if needed.
no_nozzle_offsetting_for_disallowed_areas = self._global_container_stack.getMetaDataEntry( nozzle_offsetting_for_disallowed_areas = self._global_container_stack.getMetaDataEntry(
"no_nozzle_offsetting_for_disallowed_areas", False) "nozzle_offsetting_for_disallowed_areas", True)
result = {} result = {}
for extruder in used_extruders: for extruder in used_extruders:
@ -742,7 +742,7 @@ class BuildVolume(SceneNode):
bottom_unreachable_border = 0 bottom_unreachable_border = 0
# Only do nozzle offsetting if needed # 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. #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(): for other_extruder in ExtruderManager.getInstance().getActiveExtruderStacks():
other_offset_x = other_extruder.getProperty("machine_nozzle_offset_x", "value") other_offset_x = other_extruder.getProperty("machine_nozzle_offset_x", "value")