Blender Git Commit Log

Git Commits -> Revision 4b21067

Revision 4b21067 by Sybren A. Stüvel (master)
December 17, 2021, 16:31 (GMT)
Fix T94116: Drivers can have multiple variables with same name

The RNA setter now ensures that driver variables are uniquely named
(within the scope of the driver).

Versioning code has been added to ensure this uniqueness. The last
variable with the non-unique name retains the original name; this
ensures that the driver will still evaluate to the same value as before
this fix.

This also introduces a new blenlib function `BLI_listbase_from_link()`,
which can be used to find the entire list from any item within the list.

Manifest Task: T94116

Reviewed By: mont29, JacquesLucke

Maniphest Tasks: T94116

Differential Revision: https://developer.blender.org/D13594

Commit Details:

Full Hash: 4b21067aea415f7eb4604de6dd133a67a4063640
Parent Commit: 2648d92
Lines Changed: +116, -0

7 Modified Paths:

/source/blender/blenkernel/BKE_fcurve_driver.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/fcurve_driver.c (+7, -0) (Diff)
/source/blender/blenlib/BLI_listbase.h (+29, -0) (Diff)
/source/blender/blenlib/intern/listbase.c (+20, -0) (Diff)
/source/blender/blenlib/tests/BLI_listbase_test.cc (+25, -0) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+27, -0) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021