diff --git a/src/blenderbim/blenderbim/bim/module/geometry/operator.py b/src/blenderbim/blenderbim/bim/module/geometry/operator.py index c7955a0d08..b50a82a4fd 100644 --- a/src/blenderbim/blenderbim/bim/module/geometry/operator.py +++ b/src/blenderbim/blenderbim/bim/module/geometry/operator.py @@ -1370,9 +1370,10 @@ class OverrideModeSetEdit(bpy.types.Operator): continue is_profile = True + representation_class = tool.Geometry.get_ifc_representation_class(element, representation) if usage_type == "PROFILE": 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") obj.select_set(False) continue