P back to Play Game :)
authorErwin Coumans <blender@erwincoumans.com>
Mon, 30 Jan 2006 05:43:07 +0000 (05:43 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Mon, 30 Jan 2006 05:43:07 +0000 (05:43 +0000)
<shift>P = preview toggle.
Don't know what the previous <shift>P did, something like 'Transform'. Ton, can you look into this?

source/blender/src/space.c

index 4faa1a4a035e8bfa2a80f7689a7ca5c0e34d9a96..86fbacb567ec607e1b79870edf5925788c9583a1 100644 (file)
@@ -1591,15 +1591,19 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                                else if(G.qual==LR_CTRLKEY || G.qual==(LR_SHIFTKEY|LR_CTRLKEY))
                                        make_parent();
                                else if(G.qual==LR_SHIFTKEY) {
-                                       initTransform(TFM_PUSHPULL, CTX_NONE);
-                                       Transform();
+                                       //initTransform(TFM_PUSHPULL, CTX_NONE);
+                                       //Transform();
+                                       
+                                       //Ton: is this where is should go?
+                                       toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0);
+                                       doredraw= 1;
                                }
                                else if(G.qual==LR_ALTKEY)
                                        clear_parent();
                                else if((G.qual==0)) {
-                                       toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0);
-                                       doredraw= 1;
-                       //start_game();
+                                       //toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0);
+                                       //doredraw= 1;
+                       start_game();
                                }
                                break;                          
                        case RKEY: