Blender Git Commit Log

Git Commits -> Revision d1e4376

January 29, 2020, 20:37 (GMT)
undoexp: better handling of recalc flags in undo case.

Fixes the 'object that not update its position when undoing the very
first undo step' issue.

Just like with the 'unchanged' detection, when going backward, i.e.
actual undo from n to n-1 stages, the 'recalc' flag stored in ID is not
that useful, as it actually marks the updates needed from n-2 to n-1 stages.

So we need a way to get 'future' recacl flags, i.e. the last recalc
flags used by the last despgraph update, for the current ID, and set
them into the newly read ID's racalc flags.

Note that am not sure how strong this approach is, it is relatively
simple, but may require some more involved handling (like accumulating
all flags used in-between two undo steps storage, or something
similar?).

Commit Details:

Full Hash: d1e4376f77ceb29021b31b067dd09ccf38fd2db4
Parent Commit: c41d392
Lines Changed: +23, -1

3 Modified Paths:

/source/blender/blenloader/intern/readfile.c (+13, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+6, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+4, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021