Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-10 21:44:50 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-10 22:54:42 +0400
commit522f17daa105a5c640950e74ece7aab2f83dd485 (patch)
tree55b7354136a717fab550ce6ba2887bcbdb3272d1 /source/creator
parentd7945b7202c666cb8fcfb31e3f16caa46dc69ea6 (diff)
Fix T37713: proxy not updated for first frame in background render.
The problem is that the animation curves are first before object updates, where BKE_pose_rebuild and proxy synchronize will undo the animation when the proxy is evaluted for the first time after loading. This is somewhat of a workaround but it's also useful to have the scene updated once when opening in background mode, and it makes rendering from the UI and background more similar and so more predictable to give the same result.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 420dceb812b..9889eacc5db 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -1274,6 +1274,7 @@ static int load_file(int UNUSED(argc), const char **argv, void *data)
if (CTX_wm_manager(C) == NULL) CTX_wm_manager_set(C, wm); /* reset wm */
DAG_on_visible_update(CTX_data_main(C), TRUE);
+ BKE_scene_update_tagged(CTX_data_main(C), CTX_data_scene(C));
}
else {
/* failed to load file, stop processing arguments */