Missing feature: Snap menu was not available in editmode.
authorStephen Swaney <sswaney@centurytel.net>
Tue, 28 Oct 2003 07:15:02 +0000 (07:15 +0000)
committerStephen Swaney <sswaney@centurytel.net>
Tue, 28 Oct 2003 07:15:02 +0000 (07:15 +0000)
Fixed compiler warning about ambiguous else in TKEY block.

source/blender/src/space.c

index 4309e7aa7b41f71230ee5591400dd49ba2acd24b..3dd1df83b5bb075d860852273e3d030a99679d7d 100644 (file)
@@ -1249,6 +1249,8 @@ void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                                                transform('N'); /* scale along normal */
                                        else if(G.qual==LR_CTRLKEY)
                                                transform('S');
+                                       else if(G.qual==LR_SHIFTKEY)
+                                               snapmenu();
                                        else if((G.qual==0))
                                                transform('s');
                                }
@@ -1261,7 +1263,7 @@ void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                                        transform('s');
                                break;
                        case TKEY:
-                               if(G.obedit)
+                               if(G.obedit){
                                        if((G.qual==LR_CTRLKEY) && G.obedit->type==OB_MESH) {
                                                convert_to_triface(0);
                                                allqueue(REDRAWVIEW3D, 0);
@@ -1272,6 +1274,7 @@ void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                                                clear_tilt();
                                        else if((G.qual==0))
                                                transform('t');
+                               }
                                else if(G.qual==LR_CTRLKEY) {
                                        make_track();
                                }