Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-02-07 18:44:16 +0300
committerTon Roosendaal <ton@blender.org>2009-02-07 18:44:16 +0300
commitd28a05080c10046bc480088a91296077f9d8165b (patch)
tree1a8eaa50936bdd7a937aeb15a6ca91b8edbb84d6 /source/blender/editors/mesh/mesh_ops.c
parent875a08884ba670387299a0baef19ace90170d271 (diff)
2.5
Edit Mesh: Knife Cut back. I've put it for now under ALT+CTRL+LMB, modeless direct cutting. Options for polyline input and snapping is for later. At least this works cool :)
Diffstat (limited to 'source/blender/editors/mesh/mesh_ops.c')
-rw-r--r--source/blender/editors/mesh/mesh_ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/mesh_ops.c b/source/blender/editors/mesh/mesh_ops.c
index d4d21f61b61..07dadbef500 100644
--- a/source/blender/editors/mesh/mesh_ops.c
+++ b/source/blender/editors/mesh/mesh_ops.c
@@ -165,6 +165,7 @@ void ED_operatortypes_mesh(void)
WM_operatortype_append(MESH_OT_mark_sharp);
WM_operatortype_append(MESH_OT_smooth_vertex);
WM_operatortype_append(MESH_OT_flip_editnormals);
+ WM_operatortype_append(MESH_OT_knife_cut);
}
@@ -257,6 +258,9 @@ void ED_keymap_mesh(wmWindowManager *wm)
WM_keymap_add_item(keymap, "MESH_OT_make_fgon", FKEY, KM_PRESS, KM_ALT, 0);
WM_keymap_add_item(keymap, "MESH_OT_clear_fgon", FKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
+ WM_keymap_add_item(keymap, "MESH_OT_knife_cut", LEFTMOUSE, KM_PRESS, KM_ALT|KM_CTRL, 0);
+
+
}