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.
This commit is contained in:
Brecht Van Lommel 2013-12-10 18:44:50 +01:00
parent d7945b7202
commit 522f17daa1
Notes: blender-bot 2023-02-14 11:31:04 +01:00
Referenced by issue #37797, Command line rendering wrong on first rendered frame
Referenced by issue #37713, Linked Armature don't be updated on Command Line Render
1 changed files with 1 additions and 0 deletions

View File

@ -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 */