small fix related to polyline decorator

This commit is contained in:
Bruno Perdigão
2024-08-05 21:14:57 -03:00
committed by Bruno Perdigão
parent f637ef8016
commit 4409a35441
@@ -498,10 +498,11 @@ class WallPolylineDecorator:
# Line between last polyline point and mouse
edges = [[0, 1]]
if snap_prop.snap_type != "Plane" and snap_prop.z != 0:
self.draw_batch("LINES", [polyline_points[-1]] + projection_point, decorator_color_unselected, edges)
else:
self.draw_batch("LINES", [polyline_points[-1]] + mouse_point, decorator_color_unselected, edges)
if polyline_points:
if snap_prop.snap_type != "Plane" and snap_prop.z != 0:
self.draw_batch("LINES", [polyline_points[-1]] + projection_point, decorator_color_unselected, edges)
else:
self.draw_batch("LINES", [polyline_points[-1]] + mouse_point, decorator_color_unselected, edges)
# Line for angle axis snap
if snap_prop.snap_type == "Axis":