mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fix #4737. Bug where loading profiles with a non-mesh selected would lead to trouble.
This commit is contained in:
@@ -175,7 +175,7 @@ class EnableEditingArbitraryProfile(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
def disable_editing_arbitrary_profile(context):
|
def disable_editing_arbitrary_profile(context):
|
||||||
obj = context.active_object
|
obj = context.active_object
|
||||||
if obj and obj.data and obj.data.BIMMeshProperties.subshape_type == "PROFILE":
|
if obj and obj.type == "MESH" and obj.data and obj.data.BIMMeshProperties.subshape_type == "PROFILE":
|
||||||
ProfileDecorator.uninstall()
|
ProfileDecorator.uninstall()
|
||||||
bpy.ops.object.mode_set(mode="OBJECT")
|
bpy.ops.object.mode_set(mode="OBJECT")
|
||||||
profile_mesh = obj.data
|
profile_mesh = obj.data
|
||||||
|
|||||||
Reference in New Issue
Block a user