Blender Git Loki

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021