rendered paste bodyModified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c 2008-02-11 13:04:52 UTC (rev 13640)
+++ trunk/blender/source/creator/creator.c 2008-02-11 13:30:52 UTC (rev 13641)
@@ -759,8 +759,12 @@
}
if (G.background) {
- BKE_read_file(filename, NULL);
+ int retval = BKE_read_file(filename, NULL);
sound_initialize_sounds();
+
+ /*we successfully loaded a blend file, get sure that
+ pointcache works */
+ if (retval!=0) G.relbase_valid = 1;
/* happens for the UI on file reading too */
BKE_reset_undo();