Blender Git Loki

Git Commits -> Revision 9183592

Revision 9183592 by Sergey Sharybin (master)
April 26, 2018, 16:11 (GMT)
Animation: Make it possible to keyframe to with copy-on-write

The issue was that every object tweak was doing a full copy
of original datablock onto evaluated version, and was updating
animation. This made it impossible to tweak properties which
has keyframes.

Proposed solution is to:

- Always apply animation on frame change, and when object
is explicitly tagged for animation update.

This will store original DNA value of animated property
in the f-curve.

- When applying animation in other cases, we check original
DNA value stored in f-curve with the actual original DNA
property. If they differ, it means user started to tweak
animated property, and we should skip animation.

If the value is the same, we apply animation.

This is just a first step towards proper final implementation,
but seems to be the direction we want to take.

Commit Details:

Full Hash: 918359269824a081c5e5819c44bc8461f59ebd37
Parent Commit: c86be73
Lines Changed: +51, -8

2 Modified Paths:

/source/blender/blenkernel/intern/anim_sys.c (+46, -7) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021