From 3d566cc40162cecc02a0d5166233c70d1adc2356 Mon Sep 17 00:00:00 2001 From: Manu Varkey Date: Mon, 3 Jun 2024 17:00:58 +0530 Subject: [PATCH] Fix missing code in pull request #4784 (#4794) One line of code was inadvertently missed out in the pull request https://github.com/IfcOpenShell/IfcOpenShell/pull/4784 --- src/blenderbim/blenderbim/bim/module/material/operator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blenderbim/blenderbim/bim/module/material/operator.py b/src/blenderbim/blenderbim/bim/module/material/operator.py index 26ec81b5b7..a7cb1904c8 100644 --- a/src/blenderbim/blenderbim/bim/module/material/operator.py +++ b/src/blenderbim/blenderbim/bim/module/material/operator.py @@ -596,6 +596,7 @@ class EditMaterialSetItemProfile(bpy.types.Operator, tool.Ifc.Operator): attributes = blenderbim.bim.helper.export_attributes(self.props.material_set_item_profile_attributes) profile = tool.Ifc.get().by_id(self.material_set_item).Profile ifcopenshell.api.run("profile.edit_profile", tool.Ifc.get(), profile=profile, attributes=attributes) + self.props.active_material_set_item_id = 0 self.props.material_set_item_profile_attributes.clear() model_profile.DumbProfileRegenerator().regenerate_from_profile_def(profile)