mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix #2371. Bug where you couldn't edit psets of a hidden object.
This commit is contained in:
@@ -323,7 +323,10 @@ class AddPset(bpy.types.Operator, Operator):
|
||||
self.file = IfcStore.get_file()
|
||||
pset_name = get_pset_props(context, self.obj, self.obj_type).pset_name
|
||||
if self.obj_type == "Object":
|
||||
objects = [o.name for o in context.selected_objects]
|
||||
if context.selected_objects:
|
||||
objects = [o.name for o in context.selected_objects]
|
||||
else:
|
||||
objects = [context.active_object.name]
|
||||
else:
|
||||
objects = [self.obj]
|
||||
for obj in objects:
|
||||
|
||||
Reference in New Issue
Block a user