mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix snapping for blender curve objects
This commit is contained in:
@@ -267,7 +267,9 @@ class Raycast(bonsai.core.tool.Raycast):
|
|||||||
points.append(snap_point)
|
points.append(snap_point)
|
||||||
return points
|
return points
|
||||||
if obj and obj.type == "CURVE":
|
if obj and obj.type == "CURVE":
|
||||||
|
mw = obj.matrix_world.copy()
|
||||||
obj = bpy.data.objects.new("new_object", obj.to_mesh().copy())
|
obj = bpy.data.objects.new("new_object", obj.to_mesh().copy())
|
||||||
|
obj.matrix_world = mw @ obj.matrix_world
|
||||||
|
|
||||||
if not custom_bmesh:
|
if not custom_bmesh:
|
||||||
bm = bmesh.new()
|
bm = bmesh.new()
|
||||||
|
|||||||
Reference in New Issue
Block a user