Fixing error on using bim.override_mode_set_edit with no active object

Error was:
  File "\addons\blenderbim\bim\module\geometry\operator.py", line 775, in _execute
    obj.select_set(True)
AttributeError: 'NoneType' object has no attribute 'select_set'
This commit is contained in:
Andrej730
2023-04-24 11:16:51 +05:00
parent 7bb57b3ab9
commit 757bf4e916
@@ -715,7 +715,7 @@ class OverrideModeSetEdit(bpy.types.Operator):
return IfcStore.execute_ifc_operator(self, context)
def _execute(self, context):
objs = context.selected_objects or [context.active_object]
objs = context.selected_objects or ([context.active_object] if context.active_object else [])
active_obj = context.active_object
if context.active_object: