Fix feature tests failing due to AuthoringData changes

relating_type_id now relies on type_elements which relies on ifc_class_current and they wasn't updated when ifc_class was changed.

Typical failing test looked like "TypeError: bpy_struct: item.attr = val: expected a string enum, not int".
This commit is contained in:
Andrej730
2025-02-24 18:21:12 +05:00
parent 1d815cdb67
commit f6ae711f6c
@@ -60,6 +60,8 @@ def get_materials(self, context):
def update_ifc_class(self, context):
bpy.ops.bim.load_type_thumbnails(ifc_class=self.ifc_class)
AuthoringData.data["ifc_class_current"] = self.ifc_class
AuthoringData.data["type_elements"] = AuthoringData.type_elements()
AuthoringData.data["relating_type_id"] = AuthoringData.relating_type_id()
AuthoringData.data["type_thumbnail"] = AuthoringData.type_thumbnail()
if tool.Blender.get_enum_safe(self, "relating_type_id") is None: