svn merge ^/trunk/blender -r42742:42757
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 99c3ec0c134e132903bdbaa0348e871a81dd77ab..1c554cdcf9ab054a2dce326ea838bd40959a1041 100644 (file)
@@ -12805,6 +12805,14 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                        for (ntree=main->nodetree.first; ntree; ntree=ntree->id.next)
                                do_versions_nodetree_socket_use_flags_2_62(ntree);
                }
+               {
+                       /* Initialize BGE exit key to esc key */
+                       Scene *scene;
+                       for(scene= main->scene.first; scene; scene= scene->id.next) {
+                               if (!scene->gm.exitkey)
+                                       scene->gm.exitkey = 218; // Blender key code for ESC
+                       }
+               }
        }
 
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */