[Bf-blender-cvs] [522f17d] master: Fix T37713: proxy not updated for first frame in background render.

Brecht Van Lommel noreply at git.blender.org
Tue Dec 10 19:57:51 CET 2013


Commit: 522f17daa105a5c640950e74ece7aab2f83dd485
Author: Brecht Van Lommel
Date:   Tue Dec 10 18:44:50 2013 +0100
http://developer.blender.org/rB522f17daa105a5c640950e74ece7aab2f83dd485

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.

===================================================================

M	source/creator/creator.c

===================================================================

diff --git a/source/creator/creator.c b/source/creator/creator.c
index 420dceb..9889eac 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 */




More information about the Bf-blender-cvs mailing list