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:
parent
d7945b7202
commit
522f17daa1
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue