[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33886] trunk/blender/source/blender/ editors/transform/transform.c: Bugfix: (Mario Kishalmi patch)

Ton Roosendaal ton at blender.org
Fri Dec 24 13:50:07 CET 2010


Revision: 33886
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33886
Author:   ton
Date:     2010-12-24 13:50:07 +0100 (Fri, 24 Dec 2010)

Log Message:
-----------
Bugfix: (Mario Kishalmi patch)

Edge slide bug: when multiple vertical subdivisions exist, the UVs for
a slide or loopcut-slide operation were wrong.

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	2010-12-24 11:27:34 UTC (rev 33885)
+++ trunk/blender/source/blender/editors/transform/transform.c	2010-12-24 12:50:07 UTC (rev 33886)
@@ -4513,7 +4513,7 @@
 		look = look->next;
 	}
 
-	// make sure the UPs nad DOWNs are 'faceloops'
+	// make sure the UPs and DOWNs are 'faceloops'
 	// Also find the nearest slidevert to the cursor
 
 	look = vertlist;
@@ -4669,7 +4669,7 @@
 							uv_new = tf->uv[k];
 
 							if (ev->tmp.l) {
-								if (fabs(suv->origuv[0]-uv_new[0]) > 0.0001 || fabs(suv->origuv[1]-uv_new[1])) {
+								if (fabs(suv->origuv[0]-uv_new[0]) > 0.0001f || fabs(suv->origuv[1]-uv_new[1]) > 0.0001f) {
 									ev->tmp.l = -1; /* Tag as invalid */
 									BLI_linklist_free(suv->fuv_list,NULL);
 									suv->fuv_list = NULL;





More information about the Bf-blender-cvs mailing list