mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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)
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user