half_machine_width should be halved

Shoot me before I do any further damage, please.

Contributes to issue CURA-2625.
This commit is contained in:
Ghostkeeper 2016-11-14 11:38:47 +01:00
parent 98089e702c
commit 18b2834091
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -438,6 +438,7 @@ class BuildVolume(SceneNode):
self._disallowed_areas = []
for extruder_id in result_areas:
self._disallowed_areas.extend(result_areas[extruder_id])
print("FINAL:", self._disallowed_areas)
## Computes the disallowed areas for objects that are printed with print
# features.
@ -534,8 +535,8 @@ class BuildVolume(SceneNode):
result[extruder_id].append(polygon.translate(offset_x, offset_y)) #Compensate for the nozzle offset of this extruder.
#Add the border around the edge of the build volume.
half_machine_width = self._global_container_stack.getProperty("machine_width", "value")
half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value")
half_machine_width = self._global_container_stack.getProperty("machine_width", "value") / 2
half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value") / 2
if border_size + offset_x > 0:
result[extruder_id].append(Polygon(numpy.array([
[-half_machine_width, -half_machine_depth],