mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
Fix bug where object class selection didn't work with linked models
This commit is contained in:
@@ -84,7 +84,7 @@ class SelectIfcClass(bpy.types.Operator):
|
|||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
self.file = IfcStore.get_file()
|
self.file = IfcStore.get_file()
|
||||||
for obj in context.visible_objects:
|
for obj in context.visible_objects:
|
||||||
if not obj.BIMObjectProperties.ifc_definition_id:
|
if not obj.BIMObjectProperties.ifc_definition_id or obj.is_library_indirect:
|
||||||
continue
|
continue
|
||||||
element = self.file.by_id(obj.BIMObjectProperties.ifc_definition_id)
|
element = self.file.by_id(obj.BIMObjectProperties.ifc_definition_id)
|
||||||
if does_keyword_exist(self.ifc_class, element.is_a(), context):
|
if does_keyword_exist(self.ifc_class, element.is_a(), context):
|
||||||
|
|||||||
Reference in New Issue
Block a user