[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12505] trunk/blender/source/blender/src/ drawobject.c: curve selection wasnt checking if the screen coords were clipped.
Campbell Barton
cbarton at metavr.com
Tue Nov 6 20:56:25 CET 2007
Revision: 12505
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12505
Author: campbellbarton
Date: 2007-11-06 20:56:25 +0100 (Tue, 06 Nov 2007)
Log Message:
-----------
curve selection wasnt checking if the screen coords were clipped. made selecting off screen verts possible. This looks like an old bug (at least it existed before I added
hide handles option).
Modified Paths:
--------------
trunk/blender/source/blender/src/drawobject.c
Modified: trunk/blender/source/blender/src/drawobject.c
===================================================================
--- trunk/blender/source/blender/src/drawobject.c 2007-11-06 18:53:46 UTC (rev 12504)
+++ trunk/blender/source/blender/src/drawobject.c 2007-11-06 19:56:25 UTC (rev 12505)
@@ -1359,14 +1359,18 @@
if(bezt->hide==0) {
if (G.f & G_HIDDENHANDLES) {
view3d_project_short_clip(curarea, bezt->vec[1], s, pmat, vmat);
- func(userData, nu, NULL, bezt, 1, s[0], s[1]);
+ if (s[0] != IS_CLIPPED)
+ func(userData, nu, NULL, bezt, 1, s[0], s[1]);
} else {
view3d_project_short_clip(curarea, bezt->vec[0], s, pmat, vmat);
- func(userData, nu, NULL, bezt, 0, s[0], s[1]);
+ if (s[0] != IS_CLIPPED)
+ func(userData, nu, NULL, bezt, 0, s[0], s[1]);
view3d_project_short_clip(curarea, bezt->vec[1], s, pmat, vmat);
- func(userData, nu, NULL, bezt, 1, s[0], s[1]);
+ if (s[0] != IS_CLIPPED)
+ func(userData, nu, NULL, bezt, 1, s[0], s[1]);
view3d_project_short_clip(curarea, bezt->vec[2], s, pmat, vmat);
- func(userData, nu, NULL, bezt, 2, s[0], s[1]);
+ if (s[0] != IS_CLIPPED)
+ func(userData, nu, NULL, bezt, 2, s[0], s[1]);
}
}
}
More information about the Bf-blender-cvs
mailing list