We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f26cfc9 commit 4bc9879Copy full SHA for 4bc9879
1 file changed
src/blenderbim/blenderbim/bim/module/type/operator.py
@@ -141,14 +141,10 @@ class SelectType(bpy.types.Operator):
141
142
def execute(self, context):
143
element = tool.Ifc.get().by_id(self.relating_type)
144
+ tool.Spatial.select_products([element])
145
obj = tool.Ifc.get_object(element)
146
if obj:
- if obj in context.selectable_objects:
147
- tool.Blender.select_and_activate_single_object(context, obj)
148
- else:
149
- self.report({"INFO"}, "Type object can't be selected : It may be hidden or in an excluded collection.")
150
- context.scene.BIMModelProperties.ifc_class = element.is_a()
151
- context.scene.BIMModelProperties.relating_type_id = str(self.relating_type)
+ context.view_layer.objects.active = obj
152
return {"FINISHED"}
153
154
0 commit comments