Fix for [#25825] Boolean doesn't work in command-line rendering (2.56)
authorJanne Karhu <jhkarh@gmail.com>
Fri, 28 Jan 2011 15:24:02 +0000 (15:24 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Fri, 28 Jan 2011 15:24:02 +0000 (15:24 +0000)
* DAG_on_load_update wasn't called at all for background rendering, so any non-animated object data wasn't updated properly.

source/creator/creator.c

index 38ddecabc025bc84f40052ced794cd8b7879a1a7..730563dfc6350e1bc217dd901b1f17830a5c5d66 100644 (file)
@@ -68,6 +68,7 @@
 #include "BKE_utildefines.h"
 #include "BKE_blender.h"
 #include "BKE_context.h"
+#include "BKE_depsgraph.h" // for DAG_on_load_update
 #include "BKE_font.h"
 #include "BKE_global.h"
 #include "BKE_main.h"
@@ -978,6 +979,8 @@ static int load_file(int UNUSED(argc), char **argv, void *data)
                        WM_check(C);
                        G.relbase_valid = 1;
                        if (CTX_wm_manager(C) == NULL) CTX_wm_manager_set(C, wm); /* reset wm */
+
+                       DAG_on_load_update(CTX_data_main(C), TRUE);
                }
 
                /* WM_read_file() runs normally but since we're in background mode do here */