diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-09 19:30:15 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-09 19:30:15 +0400 |
commit | 90779811d75de7ec7c512730e96aff48acc84348 (patch) | |
tree | e75d1d25b63a1123baf36746f3fe2877510d55dc /source/blender/blenkernel | |
parent | e802efb7afa0f3bb0d5d4fad37abce4148bb9ea4 (diff) |
Fix #34932: drivers on world nodes not updating on frame changes.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index e03ebc40c86..2685484b576 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -1057,6 +1057,15 @@ static void scene_update_drivers(Main *UNUSED(bmain), Scene *scene) if (adt && adt->drivers.first) BKE_animsys_evaluate_animdata(scene, nid, adt, ctime, ADT_RECALC_DRIVERS); } + + /* world nodes */ + if (scene->world && scene->world->nodetree) { + ID *nid = (ID *)scene->world->nodetree; + AnimData *adt = BKE_animdata_from_id(nid); + + if (adt && adt->drivers.first) + BKE_animsys_evaluate_animdata(scene, nid, adt, ctime, ADT_RECALC_DRIVERS); + } } /* deps hack - do extra recalcs at end */ |