From 53cf1ee0a1b42513da21472133f99e4cd2a19f61 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 11 Feb 2025 20:03:50 +1100 Subject: [PATCH] Fix UI bug where changing the profile name didn't result in the UI being refreshed --- src/bonsai/bonsai/bim/module/profile/prop.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/profile/prop.py b/src/bonsai/bonsai/bim/module/profile/prop.py index 543312b484..801e7e0204 100644 --- a/src/bonsai/bonsai/bim/module/profile/prop.py +++ b/src/bonsai/bonsai/bim/module/profile/prop.py @@ -45,8 +45,11 @@ def get_profile_classes(self, context): def update_profile_name(self: "Profile", context: bpy.types.Context) -> None: + from bonsai.bim.handler import refresh_ui_data + profile = tool.Ifc.get().by_id(self.ifc_definition_id) profile.ProfileName = self.name + refresh_ui_data() class Profile(PropertyGroup):