Game player: preserve material, debug settings, between .blend files.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 4 Oct 2008 16:42:36 +0000 (16:42 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 4 Oct 2008 16:42:36 +0000 (16:42 +0000)
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp

index 9700e6387f270d665affdee80037987dbd1a5ce6..fbb8d6530ba53717c33b32416226bef549091809 100644 (file)
@@ -659,7 +659,9 @@ int main(int argc, char** argv)
                                                Main *maggie = bfd->main;
                                                Scene *scene = bfd->curscene;
                                                G.main = maggie;
                                                Main *maggie = bfd->main;
                                                Scene *scene = bfd->curscene;
                                                G.main = maggie;
-                                               G.fileflags  = bfd->fileflags;
+
+                                               if (firstTimeRunning)
+                                                       G.fileflags  = bfd->fileflags;
 
                                                //Seg Fault; icon.c gIcons == 0
                                                BKE_icons_init(1);
 
                                                //Seg Fault; icon.c gIcons == 0
                                                BKE_icons_init(1);