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-07-29 22:15:46 +0400
committerTon Roosendaal <ton@blender.org>2009-07-29 22:15:46 +0400
commitda14738624117d54aa088a192e72b9270cdcf5d9 (patch)
tree8ef66e4d100351fc3b81fa3018a8527f01b9daea /source/blender/editors/mesh/editmesh_loop.c
parent785bf413f30d70da9344caa8291726e0c1b247b9 (diff)
2.5
Two bugfixes, reported by Sebastian Skejo in IRC: - File operator poll wasn't secure, search for it crashed - Knife tool depends on having view3d context, fixed poll for it
Diffstat (limited to 'source/blender/editors/mesh/editmesh_loop.c')
-rw-r--r--source/blender/editors/mesh/editmesh_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_loop.c b/source/blender/editors/mesh/editmesh_loop.c
index 7fc3753eefb..20fd33fc731 100644
--- a/source/blender/editors/mesh/editmesh_loop.c
+++ b/source/blender/editors/mesh/editmesh_loop.c
@@ -723,7 +723,7 @@ void MESH_OT_knife_cut(wmOperatorType *ot)
ot->modal= WM_gesture_lines_modal;
ot->exec= knife_cut_exec;
- ot->poll= ED_operator_editmesh;
+ ot->poll= EM_view3d_poll;
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;