Blender Git Commit Log

Git Commits -> Revision 60fba82

Revision 60fba82 by Hans Goudey (master)
August 31, 2021, 16:49 (GMT)
Fix T91088: Assigning custom property value in python resets UI data

Assigning a new value to an IDProperty with the Python API would free
the entire contents of the existing property, which unfortunately
happened to include the UI data. The fix is to extract the UI data from
the existing property before freeing its contents. An alternative
would be adding another argument to `IDP_FreePropertyContent_ex`, but
this solution is clearer and doesn't increase complexity elsewhere.

Commit Details:

Full Hash: 60fba8202ce4081516f7224074887327f793bfed
Parent Commit: cfc6744
Lines Changed: +4, -0

1 Modified Path:

/source/blender/python/generic/idprop_py_api.c (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021