Remove mathutils dependency from add_slab_representation.py

This commit is contained in:
Bruno Perdigão
2024-11-08 10:33:07 -03:00
parent 024566887d
commit 4b558604cc
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class DumbSlabGenerator:
polyline_data = bpy.context.scene.BIMPolylineProperties.insertion_polyline
polyline_points = polyline_data[0].polyline_points if polyline_data else []
self.location = Vector((polyline_points[0].x, polyline_points[0].y, self.container_obj.location.z))
self.polyline = [Vector((p.x, p.y, 0.0)) - self.location for p in polyline_points]
self.polyline = [tuple(Vector((p.x, p.y, 0.0)) - self.location) for p in polyline_points]
if len(self.polyline) <= 2:
return