Fix #3390. Type products should not be set in the model interface.

This commit is contained in:
Dion Moult
2023-07-08 22:09:37 +10:00
parent 3aea0915d0
commit b0ce2e5a00
@@ -147,8 +147,10 @@ class SelectType(bpy.types.Operator):
tool.Blender.select_and_activate_single_object(context, obj)
else:
self.report({"INFO"}, "Type object can't be selected : It may be hidden or in an excluded collection.")
context.scene.BIMModelProperties.ifc_class = element.is_a()
context.scene.BIMModelProperties.relating_type_id = str(self.relating_type)
# IfcTypeProducts are only used for annotations and not part of the model interface.
if element.is_a() != "IfcTypeProduct":
context.scene.BIMModelProperties.ifc_class = element.is_a()
context.scene.BIMModelProperties.relating_type_id = str(self.relating_type)
return {"FINISHED"}