Two in one:
[blender.git] / source / blender / src / toets.c
index 51c54cf6661914d38efa2d0f44c91405a29e03f9..355a1535f42dac2242a6241bf76e74cf9f431199 100644 (file)
@@ -337,13 +337,7 @@ void persptoetsen(unsigned short event)
                if(G.vd->persp<2) perspo= G.vd->persp;
        }
 
-       if(G.vd->depths) G.vd->depths->damaged= 1;
-       retopo_queue_updates(G.vd);
-       if(retopo_mesh_paint_check() && G.vd->retopo_view_data) {
-               /* Force redraw */
-               drawview3dspace(G.vd->area, G.vd);
-               retopo_paint_view_update(G.vd);
-       }
+       retopo_force_update();
        
        if(preview3d_event) 
                BIF_view3d_previewrender_signal(curarea, PR_DBASE|PR_DISPRECT);
@@ -459,6 +453,10 @@ int blenderqread(unsigned short event, short val)
                        BIF_save_rendered_image_fs();
                        return 0;
                }
+               else if(G.qual==LR_SHIFTKEY) {
+                       newspace(curarea, SPACE_NODE);
+                       return 0;
+               }
                else if(G.qual & LR_CTRLKEY) {
                        BIF_screendump(0);
                }
@@ -683,20 +681,6 @@ int blenderqread(unsigned short event, short val)
                                }
                        }
                }
-               else if(G.qual==LR_SHIFTKEY) {  // ??
-                       if(G.obedit)
-                               exit_editmode(EM_FREEDATA|EM_FREEUNDO|EM_WAITCURSOR); // freedata, and undo
-                       if(G.f & G_FACESELECT)
-                               set_faceselect();
-                       if(G.f & G_VERTEXPAINT)
-                               set_vpaint();
-                       if(G.f & G_TEXTUREPAINT)
-                               set_texturepaint();
-                       if(G.f & G_WEIGHTPAINT)
-                               set_wpaint();
-                       if(G.f & G_SCULPTMODE)
-                               set_sculptmode();
-               }
                break;
 
        case BACKSPACEKEY:
@@ -729,7 +713,8 @@ int blenderqread(unsigned short event, short val)
                break;
        case IKEY:
                if(textediting==0 && textspace==0 && !ELEM3(curarea->spacetype, SPACE_FILE, SPACE_IMASEL, SPACE_NODE)) {
-                       if(G.qual==0) {
+                       if(G.f & G_SCULPTMODE) return 1;
+                       else if(G.qual==0) {
                                common_insertkey();
                                return 0;
                        }