mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 22:10:00 +00:00
Fix UI bug where changing the profile name didn't result in the UI being refreshed
This commit is contained in:
@@ -45,8 +45,11 @@ def get_profile_classes(self, context):
|
|||||||
|
|
||||||
|
|
||||||
def update_profile_name(self: "Profile", context: bpy.types.Context) -> None:
|
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 = tool.Ifc.get().by_id(self.ifc_definition_id)
|
||||||
profile.ProfileName = self.name
|
profile.ProfileName = self.name
|
||||||
|
refresh_ui_data()
|
||||||
|
|
||||||
|
|
||||||
class Profile(PropertyGroup):
|
class Profile(PropertyGroup):
|
||||||
|
|||||||
Reference in New Issue
Block a user