Fix snapping for blender curve objects

This commit is contained in:
Bruno Perdigão
2025-10-09 10:55:02 -03:00
parent 1bc4e82b7d
commit 1a8831012b
+2
View File
@@ -267,7 +267,9 @@ class Raycast(bonsai.core.tool.Raycast):
points.append(snap_point)
return points
if obj and obj.type == "CURVE":
mw = obj.matrix_world.copy()
obj = bpy.data.objects.new("new_object", obj.to_mesh().copy())
obj.matrix_world = mw @ obj.matrix_world
if not custom_bmesh:
bm = bmesh.new()