mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-02 11:33:57 -06:00
Ignore polygons with length 0 when updating disallowed areas
Contributes to CURA-3148
This commit is contained in:
parent
f04dc88d2c
commit
04692d1093
1 changed files with 4 additions and 1 deletions
|
@ -285,6 +285,9 @@ class BuildVolume(SceneNode):
|
||||||
color = Color(0.0, 0.0, 0.0, 0.15)
|
color = Color(0.0, 0.0, 0.0, 0.15)
|
||||||
for polygon in self._disallowed_areas:
|
for polygon in self._disallowed_areas:
|
||||||
points = polygon.getPoints()
|
points = polygon.getPoints()
|
||||||
|
if len(points) == 0:
|
||||||
|
continue
|
||||||
|
|
||||||
first = Vector(self._clamp(points[0][0], min_w, max_w), disallowed_area_height, self._clamp(points[0][1], min_d, max_d))
|
first = Vector(self._clamp(points[0][0], min_w, max_w), disallowed_area_height, self._clamp(points[0][1], min_d, max_d))
|
||||||
previous_point = Vector(self._clamp(points[0][0], min_w, max_w), disallowed_area_height, self._clamp(points[0][1], min_d, max_d))
|
previous_point = Vector(self._clamp(points[0][0], min_w, max_w), disallowed_area_height, self._clamp(points[0][1], min_d, max_d))
|
||||||
for point in points:
|
for point in points:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue