mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 18:22:30 +00:00
Fix bug where hidden elements weren't selected sometimes
This commit is contained in:
@@ -150,9 +150,9 @@ class Spatial(blenderbim.core.tool.Spatial):
|
|||||||
for product in products:
|
for product in products:
|
||||||
obj = tool.Ifc.get_object(product)
|
obj = tool.Ifc.get_object(product)
|
||||||
if obj and bpy.context.view_layer.objects.get(obj.name):
|
if obj and bpy.context.view_layer.objects.get(obj.name):
|
||||||
obj.select_set(True)
|
|
||||||
if unhide:
|
if unhide:
|
||||||
obj.hide_set(False)
|
obj.hide_set(False)
|
||||||
|
obj.select_set(True)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def filter_products(cls, products, action):
|
def filter_products(cls, products, action):
|
||||||
|
|||||||
Reference in New Issue
Block a user