Added K Menu for Loop Select, Loop Cut, and Knife tools.
[blender.git] / source / blender / src / editmesh.c
index 53dc18137bf2c6a7ed16b188400947a6c9d2ca14..96c8251891086bf2f419296ab6460adb8452e571 100644 (file)
@@ -7494,6 +7494,29 @@ short seg_intersect(EditEdge *e, CutCurve *c, int len){
 } 
 
 
+void LoopMenu(){ /* Called by KKey */
+
+       short ret;
+       
+       ret=pupmenu("Loop/Cut Menu %t|Loop Select %x1|Loop Cut %x2|"
+                               "Knife (Exact) %x3|Knife (Centers)%x4|");
+                               
+       switch (ret){
+               case 1:
+                       loop('s');
+                       break;
+               case 2:
+                       loop('c');
+                       break;
+               case 3: 
+                       KnifeSubdivide(KNIFE_EXACT);
+                       break;
+               case 4:
+                       KnifeSubdivide(KNIFE_MIDPOINT);
+       }
+
+}
+
 /*********************** EDITMESH UNDO ********************************/
 /* Mesh Edit undo by Alexander Ewring,                                */
 /* ported by Robert Wenzlaff                                          */
@@ -7644,4 +7667,4 @@ void undo_menu_mesh(void)
 
        if (event==1) remake_editMesh();
        else undo_pop_mesh(G.undo_edit_level-event+3);
-}
\ No newline at end of file
+}