mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 03:33:48 +00:00
override_outliner_delete poll error fix
This commit is contained in:
@@ -538,7 +538,7 @@ class OverrideOutlinerDelete(bpy.types.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return len(context.selected_ids) > 0
|
return len(getattr(context, "selected_ids", [])) > 0
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
# In this override, we don't check self.hierarchy. This effectively
|
# In this override, we don't check self.hierarchy. This effectively
|
||||||
|
|||||||
Reference in New Issue
Block a user