Skip to content

Commit

Permalink
Fix #560: id_properties_ui corruption
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pragma37 committed Sep 24, 2024
1 parent 4c7959c commit b1a85c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BlenderMalt/MaltProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1a85c5

Please sign in to comment.