fixed mistake in tool.Blender.apply_bmesh

was resulting in error when you apply roof path
This commit is contained in:
Andrej730
2023-04-11 17:30:29 +05:00
parent d2da01041c
commit 88d4640d3f
+2 -1
View File
@@ -195,11 +195,12 @@ class Blender:
)
bmesh.update_edit_mesh(mesh)
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(
"Error applying bmesh in EDIT object - object is "
"not provided and can't be acquired from the context. "
)
obj = bpy.context.object
obj.update_from_editmode()
else:
bm.to_mesh(mesh)