Have bim.select_assigned_product make selected object active, so it's easier to change its Object Information

This commit is contained in:
Ryan Schultz
2024-09-05 10:09:35 -05:00
parent 12318fbfc2
commit f521945766
+4 -1
View File
@@ -1735,7 +1735,10 @@ class Drawing(bonsai.core.tool.Drawing):
element = tool.Ifc.get_entity(obj)
product = cls.get_assigned_product(element)
if product:
tool.Ifc.get_object(product).select_set(True)
product_obj = tool.Ifc.get_object(product)
product_obj.select_set(True)
context.view_layer.objects.active = product_obj
@classmethod
def is_drawing_active(cls) -> bool: