From b1a85c5c8349e5e2272361ece81894277411e81b Mon Sep 17 00:00:00 2001 From: Miguel Pozo Date: Tue, 24 Sep 2024 21:03:32 +0200 Subject: [PATCH] Fix #560: id_properties_ui corruption Work around the issue by clearing the properties before updating them. The root cause is already fixed in Blender 4.3 and will be fixed in 4.2.3 https://projects.blender.org/blender/blender/issues/127952 --- BlenderMalt/MaltProperties.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BlenderMalt/MaltProperties.py b/BlenderMalt/MaltProperties.py index 5839b19c..5d0f0ac1 100644 --- a/BlenderMalt/MaltProperties.py +++ b/BlenderMalt/MaltProperties.py @@ -376,7 +376,9 @@ def resize(): if ui_key in rna_prop and rna_prop[ui_key] is not None: ui_properties[ui_key] = rna_prop[ui_key] - self.id_properties_ui(key).update(**ui_properties) + ui = self.id_properties_ui(key) + ui.clear() + ui.update(**ui_properties) # Force a depsgraph update. # Otherwise these won't be available inside scene_eval