Blender Git Loki

Git Commits -> Revision 7f133f6

Revision 7f133f6 by Joshua Leung (master)
October 20, 2009, 03:44 (GMT)
Bugfix #19663: Renaming named data doesn't fix F-Curves

RNA Paths used in F-Curve, Drivers, etc. now get renamed when some data that they use gets renamed. This only works when things like Bones, Constraints, Shape Keys, and Modifiers get renamed, but other cases can get added easily.

The code here only performs simple string replacements, so there is the potential for problems when several sets of data with the same names are present. For example, if there are multiple armatures with bones that have the same names, renaming a bone on one armature (with a bone on another armature having the same name) will break all the drivers on the other one, even though they aren't really connected. However, I don't expect the aforementioned scenario to really be a problem in most production scenarios.

Commit Details:

Full Hash: 7f133f65b2049546adddec77720c90aafb9add97
SVN Revision: 23987
Parent Commit: 9e6d1c6
Lines Changed: +269, -23

8 Modified Paths:

/source/blender/blenkernel/BKE_animsys.h (+10, -0) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+136, -20) (Diff)
/source/blender/editors/armature/editarmature.c (+8, -3) (Diff)
/source/blender/makesrna/intern/rna_access.c (+75, -0) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_key.c (+24, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+7, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021