[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39541] branches/soc-2011-onion/source/ blender/editors/uvedit/uvedit_ops.c: Tag seam in UV synch mode

Antony Riakiotakis kalast at gmail.com
Fri Aug 19 02:03:40 CEST 2011


Revision: 39541
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39541
Author:   psy-fi
Date:     2011-08-19 00:03:39 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
Tag seam in UV synch mode
=========================
*fix for tag seam on selection.

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c

Modified: branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c	2011-08-18 23:44:44 UTC (rev 39540)
+++ branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c	2011-08-19 00:03:39 UTC (rev 39541)
@@ -4365,15 +4365,11 @@
 
 		for(efa = em->faces.first; efa; efa = efa->next){
 			MTFace *mt = CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
-
-			const char SELECTION = TF_SEL1 | TF_SEL2 | TF_SEL3 | TF_SEL4;
-			if(mt->flag & SELECTION){
-				int nverts = efa->v4? 4 : 3;
-				int i;
-				for(i = 0; i < nverts; i++){
-					if((mt->flag & TF_SEL_MASK(i)) && (mt->flag & TF_SEL_MASK((i + 1)%nverts))){
-						(*(&efa->e1 + i))->seam = 1;
-					}
+			int nverts = efa->v4? 4 : 3;
+			int i;
+			for(i = 0; i < nverts; i++){
+				if(uvedit_edge_selected(scene, efa, mt, i)){
+					(*(&efa->e1 + i))->seam = 1;
 				}
 			}
 		}




More information about the Bf-blender-cvs mailing list