Browse Source

Fix iteration over prime-disallowed areas

Oops. prime_disallowed_areas is a dictionary per extruder.

Contributes to issue CURA-2625.
Ghostkeeper 8 years ago
parent
commit
a8d36c9116
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/BuildVolume.py

+ 1 - 1
cura/BuildVolume.py

@@ -392,7 +392,7 @@ class BuildVolume(SceneNode):
 
             collision = False
             for prime_polygon in prime_areas[extruder_id]:
-                for disallowed_polygon in prime_disallowed_areas:
+                for disallowed_polygon in prime_disallowed_areas[extruder_id]:
                     if prime_polygon.intersectsPolygon(disallowed_polygon) is not None:
                         collision = True
                         break