Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-02-11 16:30:52 +0300
committerDaniel Genrich <daniel.genrich@gmx.net>2008-02-11 16:30:52 +0300
commit69e6a6cbc9cfdae6804d538cb4810672c5318d48 (patch)
treefba0fd9d8cd075d85e0548dc8c69aad7f2078fdc /source/creator
parentfdbfd7e3a8df163fd8773d86c9344ddff30c14ed (diff)
Pointcache: Fixed non-availability when blend file was loaded from command line and also another case where you startet from an unsaved blend and switched to a saved one; Cloth: Fixid mass init, little speedup for collisions; Collision Modifier: More generalized it
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 4dd1350ea48..3918e29b9bf 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -759,8 +759,12 @@ int main(int argc, char **argv)
}
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();