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>2006-06-21 16:46:18 +0400
committerTon Roosendaal <ton@blender.org>2006-06-21 16:46:18 +0400
commit224d0e41a5ea68677cc6a4b7cd6eea62056f4592 (patch)
tree00cfba6d978f35e848817f487f03b61a1e0a8493 /source/blender/src/editview.c
parentc8550f9132d0c2e8558970ba8d9317bc07c318ca (diff)
Bugfix #4392
Lasso select didn't check for clipped away coordinates, causing wrong selections in some cases (reported for edit mode Armature).
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r--source/blender/src/editview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 6ff397560cb..6dac4b51b2f 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -229,6 +229,9 @@ static int lasso_inside(short mcords[][2], short moves, short sx, short sy)
int a;
short *p1, *p2;
+ if(sx==IS_CLIPPED)
+ return 0;
+
p1= mcords[moves-1];
p2= mcords[0];
@@ -272,6 +275,9 @@ static int lasso_inside_edge(short mcords[][2], short moves, int x0, int y0, int
short v1[2], v2[2];
int a;
+ if(x0==IS_CLIPPED || x1==IS_CLIPPED)
+ return 0;
+
v1[0] = x0, v1[1] = y0;
v2[0] = x1, v2[1] = y1;