Fix adding prime tower locations to disallowed areas

Otherwise just a string gets added, which gives an error when the disallowed areas are being built as meshes. The front-end runs again, though the disallowed areas seem to be wrong now.

Contributes to issue CURA-2625.
This commit is contained in:
Ghostkeeper 2016-11-11 17:06:47 +01:00
parent 57f88ea048
commit a72d47c2a4
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -429,9 +429,9 @@ class BuildVolume(SceneNode):
if prime_tower_collision: #Already found a collision.
break
if not prime_tower_collision:
result_areas[extruder_id].extend(prime_tower_areas)
result_areas[extruder_id].extend(prime_tower_areas[extruder_id])
else:
self._error_areas.extend(prime_tower_areas)
self._error_areas.extend(prime_tower_areas[extruder_id])
self._has_errors = len(self._error_areas) > 0