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:
authorJohnny Matthews <johnny.matthews@gmail.com>2005-10-01 00:18:00 +0400
committerJohnny Matthews <johnny.matthews@gmail.com>2005-10-01 00:18:00 +0400
commit80c5ca75dc4a255eac6210f0c18de1a3307b66d3 (patch)
tree1f6e0443a6a23697b89689f16de61f600c68486a /source/blender/src/editmesh_loop.c
parent2f22ea5900eed0e73ed042905f33e0f1578fd32f (diff)
For loopcut, have the event queue ignore MOUSEX and MOUSEY events to help prevent it from bottlenecking
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r--source/blender/src/editmesh_loop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c
index 4c82b29e838..f96843d43fb 100644
--- a/source/blender/src/editmesh_loop.c
+++ b/source/blender/src/editmesh_loop.c
@@ -258,7 +258,8 @@ void CutEdgeloop(int numcuts)
{
val=0;
event= extern_qread(&val);
- if(val && ((event==LEFTMOUSE || event==RETKEY) || (event == MIDDLEMOUSE || event==PADENTER)))
+ if(event == MOUSEX || event == MOUSEY){ break; }
+ else if(val && ((event==LEFTMOUSE || event==RETKEY) || (event == MIDDLEMOUSE || event==PADENTER)))
{
if(event == MIDDLEMOUSE){
cuthalf = 1;
@@ -297,6 +298,7 @@ void CutEdgeloop(int numcuts)
mvalo[0] = -1;
break;
}
+
else if(val){
holdnum = -1;
switch(event){