Drivers: ensure Python expressions are cached with copy-on-write.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 11 Jun 2018 18:00:03 +0000 (20:00 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 11 Jun 2018 19:34:21 +0000 (21:34 +0200)
commit3816502b7ca0728405d8dff8d074e3189740648a
tree65c13d1440f93b3ffcd868cc5968b9dc6455ce0c
parent2bbe0c4ef43adb7437a9318fce3d41b36f07f013
Drivers: ensure Python expressions are cached with copy-on-write.

Store the compiled expressions on the original driver.

Ref T55442.
source/blender/blenkernel/BKE_fcurve.h
source/blender/blenkernel/intern/anim_sys.c
source/blender/blenkernel/intern/fcurve.c
source/blender/editors/animation/keyframing.c
source/blender/python/BPY_extern.h
source/blender/python/intern/bpy_driver.c
source/blender/python/intern/bpy_driver.h