mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
now sets active object too when selecting from web UI
This commit is contained in:
@@ -150,6 +150,7 @@ class Web(blenderbim.core.tool.Web):
|
|||||||
guid = operator_data["GlobalId"]
|
guid = operator_data["GlobalId"]
|
||||||
ele = tool.Ifc.get().by_guid(guid)
|
ele = tool.Ifc.get().by_guid(guid)
|
||||||
obj = tool.Ifc.get_object(ele)
|
obj = tool.Ifc.get_object(ele)
|
||||||
|
bpy.context.view_layer.objects.active = obj
|
||||||
obj.select_set(True)
|
obj.select_set(True)
|
||||||
|
|
||||||
return 1.0
|
return 1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user