Small fix to clear wall preview when deleting all polyline points.

This commit is contained in:
Bruno Perdigão
2024-09-12 17:22:34 -03:00
parent bd51363532
commit 7ea3d63aa0
+1
View File
@@ -283,6 +283,7 @@ class Polyline(bonsai.core.tool.Polyline):
vertices = []
polyline_data = context.scene.BIMPolylineProperties.polyline_point
if len(polyline_data) < 2:
context.scene.BIMPolylineProperties.product_preview.clear()
return
for point in polyline_data:
vertices.append(