mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Fix #3636 : Check if representation class exists before testing if it's a circle extrusion representation
This commit is contained in:
@@ -1370,9 +1370,10 @@ class OverrideModeSetEdit(bpy.types.Operator):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
is_profile = True
|
is_profile = True
|
||||||
|
representation_class = tool.Geometry.get_ifc_representation_class(element, representation)
|
||||||
if usage_type == "PROFILE":
|
if usage_type == "PROFILE":
|
||||||
operator = lambda: bpy.ops.bim.hotkey(hotkey="A_E")
|
operator = lambda: bpy.ops.bim.hotkey(hotkey="A_E")
|
||||||
elif "IfcCircleProfileDef" in tool.Geometry.get_ifc_representation_class(element, representation):
|
elif representation_class and "IfcCircleProfileDef" in representation_class:
|
||||||
self.report({"INFO"}, "Can't edit Circle Profile Extrusion")
|
self.report({"INFO"}, "Can't edit Circle Profile Extrusion")
|
||||||
obj.select_set(False)
|
obj.select_set(False)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user