From c04afe1a4b1a4039336d0b8ae6320046fd8a2bf4 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 23 Jul 2021 10:41:08 +1000 Subject: [PATCH] Minor fix. --- src/blenderbim/blenderbim/bim/module/material/operator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/material/operator.py b/src/blenderbim/blenderbim/bim/module/material/operator.py index 3cb818f5c1..3c70e9a5ca 100644 --- a/src/blenderbim/blenderbim/bim/module/material/operator.py +++ b/src/blenderbim/blenderbim/bim/module/material/operator.py @@ -205,6 +205,7 @@ class AddProfile(bpy.types.Operator): }, ) Data.load_profiles() + ProfileData.load(self.file) return {"FINISHED"} @@ -223,6 +224,7 @@ class RemoveProfile(bpy.types.Operator): self.file = IfcStore.get_file() ifcopenshell.api.run("material.remove_profile", self.file, **{"profile": self.file.by_id(self.profile)}) Data.load_profiles() + ProfileData.load(self.file) return {"FINISHED"} @@ -282,6 +284,7 @@ class ReorderMaterialSetItem(bpy.types.Operator): Data.load_layers() elif material_set.is_a("IfcMaterialProfileSet"): Data.load_profiles() + ProfileData.load(self.file) elif material_set.is_a("IfcMaterialList"): Data.load_lists() return {"FINISHED"}