mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 17:06:29 +00:00
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:
@@ -715,7 +715,7 @@ class OverrideModeSetEdit(bpy.types.Operator):
|
|||||||
return IfcStore.execute_ifc_operator(self, context)
|
return IfcStore.execute_ifc_operator(self, context)
|
||||||
|
|
||||||
def _execute(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
|
active_obj = context.active_object
|
||||||
|
|
||||||
if context.active_object:
|
if context.active_object:
|
||||||
|
|||||||
Reference in New Issue
Block a user