mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
fixed mistake in tool.Blender.apply_bmesh
was resulting in error when you apply roof path
This commit is contained in:
@@ -195,11 +195,12 @@ class Blender:
|
|||||||
)
|
)
|
||||||
bmesh.update_edit_mesh(mesh)
|
bmesh.update_edit_mesh(mesh)
|
||||||
if not obj:
|
if not obj:
|
||||||
if not bpy.context.object and bpy.context.object.data != mesh:
|
if not bpy.context.object or bpy.context.object.data != mesh:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
"Error applying bmesh in EDIT object - object is "
|
"Error applying bmesh in EDIT object - object is "
|
||||||
"not provided and can't be acquired from the context. "
|
"not provided and can't be acquired from the context. "
|
||||||
)
|
)
|
||||||
|
obj = bpy.context.object
|
||||||
obj.update_from_editmode()
|
obj.update_from_editmode()
|
||||||
else:
|
else:
|
||||||
bm.to_mesh(mesh)
|
bm.to_mesh(mesh)
|
||||||
|
|||||||
Reference in New Issue
Block a user