[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53873] trunk/blender/source/blender/ editors/transform/transform.c: fix for own bug introduced when splitting up vertex slide function.
Campbell Barton
ideasman42 at gmail.com
Thu Jan 17 07:21:21 CET 2013
Revision: 53873
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53873
Author: campbellbarton
Date: 2013-01-17 06:21:20 +0000 (Thu, 17 Jan 2013)
Log Message:
-----------
fix for own bug introduced when splitting up vertex slide function.
Modified Paths:
--------------
trunk/blender/source/blender/editors/transform/transform.c
Modified: trunk/blender/source/blender/editors/transform/transform.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform.c 2013-01-17 04:24:22 UTC (rev 53872)
+++ trunk/blender/source/blender/editors/transform/transform.c 2013-01-17 06:21:20 UTC (rev 53873)
@@ -5872,7 +5872,7 @@
float min_dist = FLT_MAX;
int i;
- for (i = 0; i < sld->totsv; i++, sv++) {
+ for (i = 0, sv = sld->sv; i < sld->totsv; i++, sv++) {
/* allow points behind the view [#33643] */
dist = len_squared_v2v2(mval_fl, sv->co_orig_2d);
if (dist < min_dist) {
@@ -5893,15 +5893,11 @@
TransDataVertSlideVert *sv;
int i;
- sv = sld->sv;
-
/* first get the direction of the original vertex */
sub_v2_v2v2(dir, sld->sv[sld->curr_sv_index].co_orig_2d, mval_fl);
normalize_v2(dir);
- sv = sld->sv;
-
- for (i = 0; i < sld->totsv; i++, sv++) {
+ for (i = 0, sv = sld->sv; i < sld->totsv; i++, sv++) {
if (sv->co_link_tot > 1) {
float dir_dot_best = -FLT_MAX;
int co_link_curr_best = -1;
More information about the Bf-blender-cvs
mailing list