Fix T53614: New Depsgraph ignores NLA strips
authorJoshua Leung <aligorith@gmail.com>
Mon, 29 Jan 2018 06:01:44 +0000 (19:01 +1300)
committerJoshua Leung <aligorith@gmail.com>
Mon, 29 Jan 2018 06:01:59 +0000 (19:01 +1300)
commit45fdea48c152b0e632a911139c7173f1e44f9310
treeccd000cce1e5caa829395318a2065e3b1ca69f10
parent79639ccd6b118d14fdf43998032226ebf54a2b3e
Fix T53614: New Depsgraph ignores NLA strips

The new depsgraph was only considering the active action
when attaching relations from the AnimData component/operation
to the properties that are affected by the animation data.
As a result, only properties animated by the active action
were working, while those animated by NLA strips did not change
when playing back/scrubbing the timeline.

This commit fixes this introducing a recursive method to properly
visit all NLA strips, and calling DepsRelBuilder::build_animdata_curves_targets()
on each of those strips.
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.h