Small fix after 7af672712f

This commit is contained in:
Bruno Perdigão
2025-03-11 14:04:34 -03:00
parent 031540e982
commit a32735ac6a
+4 -1
View File
@@ -161,7 +161,10 @@ class Snap(bonsai.core.tool.Snap):
# We multiply by the increment snap which is based on the viewport zoom
snap_threshold = 1 * cls.get_increment_snap_value(bpy.context)
default_container_elevation = tool.Ifc.get_object(tool.Root.get_default_container()).location.z
if tool.Ifc.get():
default_container_elevation = tool.Ifc.get_object(tool.Root.get_default_container()).location.z
else:
default_container_elevation = 0.0
polyline_data = bpy.context.scene.BIMPolylineProperties.insertion_polyline
polyline_points = polyline_data[0].polyline_points if polyline_data else []
if polyline_points: