mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Fix #3390. Type products should not be set in the model interface.
This commit is contained in:
@@ -147,8 +147,10 @@ class SelectType(bpy.types.Operator):
|
|||||||
tool.Blender.select_and_activate_single_object(context, obj)
|
tool.Blender.select_and_activate_single_object(context, obj)
|
||||||
else:
|
else:
|
||||||
self.report({"INFO"}, "Type object can't be selected : It may be hidden or in an excluded collection.")
|
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()
|
# IfcTypeProducts are only used for annotations and not part of the model interface.
|
||||||
context.scene.BIMModelProperties.relating_type_id = str(self.relating_type)
|
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"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user