From 522f17daa105a5c640950e74ece7aab2f83dd485 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 10 Dec 2013 18:44:50 +0100 Subject: [PATCH] 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. --- source/creator/creator.c | 1 + 1 file changed, 1 insertion(+) 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 */