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,6 +498,7 @@ class WallPolylineDecorator:
# Line between last polyline point and mouse # Line between last polyline point and mouse
edges = [[0, 1]] edges = [[0, 1]]
if polyline_points:
if snap_prop.snap_type != "Plane" and snap_prop.z != 0: if snap_prop.snap_type != "Plane" and snap_prop.z != 0:
self.draw_batch("LINES", [polyline_points[-1]] + projection_point, decorator_color_unselected, edges) self.draw_batch("LINES", [polyline_points[-1]] + projection_point, decorator_color_unselected, edges)
else: else: