Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1993)

Unified Diff: source/blender/blenloader/intern/readfile.c

Issue 4961053: Blender Cucumber to Trunk Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Fixes to crashing DDS mipmaps, leaking dyn lights, and some review comments. Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/blender/blenloader/intern/readfile.c
===================================================================
--- source/blender/blenloader/intern/readfile.c (revision 40024)
+++ source/blender/blenloader/intern/readfile.c (working copy)
@@ -12015,7 +12015,21 @@
/* put compatibility code here until next subversion bump */
{
+ {
+ /* 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; //218 is the Blender key code for ESC
+ }
+ }
+ {
+ /* Initialize default values for collision masks */
+ Object *ob;
+ for(ob=main->object.first; ob; ob=ob->id.next)
+ ob->col_group = ob->col_mask = 1;
+ }
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b