[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38538] branches/soc-2011-onion/source/ blender/editors: smart stitch commit #+infinity+-1

Antony Riakiotakis kalast at gmail.com
Wed Jul 20 15:34:29 CEST 2011


Revision: 38538
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38538
Author:   psy-fi
Date:     2011-07-20 13:34:28 +0000 (Wed, 20 Jul 2011)
Log Message:
-----------
smart stitch commit #+infinity+-1
============================
-Update: previous reorganization does not solve processing order bug after all :(.
-Preview should now tag all uv's in the islands as previewable. Still not doing any translation/rotation though.

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

Modified: branches/soc-2011-onion/source/blender/editors/mesh/editmesh_lib.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/mesh/editmesh_lib.c	2011-07-20 13:05:18 UTC (rev 38537)
+++ branches/soc-2011-onion/source/blender/editors/mesh/editmesh_lib.c	2011-07-20 13:34:28 UTC (rev 38538)
@@ -2504,6 +2504,7 @@
 							islandbuf[islandbufsize].tfindex = element->tfindex;
 							islandbuf[islandbufsize].face = element->face;
 							islandbuf[islandbufsize].separate = element->separate;
+							islandbuf[islandbufsize].island =  nislands;
 							islandbufsize++;
 
 							for(element = initelement; element; element = element->next){
@@ -2551,6 +2552,12 @@
 			vmap->islandIndices[j] = i;
 		}
 	}
+
+#if 1
+	for(i = 0; i < totuv; i++){
+		printf("island index %d\n", islandbuf[i].island);
+	}
+#endif
 	MEM_freeN(vmap->buf);
 
 	vmap->buf = islandbuf;

Modified: branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c	2011-07-20 13:05:18 UTC (rev 38537)
+++ branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_ops.c	2011-07-20 13:34:28 UTC (rev 38538)
@@ -2049,6 +2049,7 @@
 		case SKEY:
 			if(event->val == KM_PRESS){
 				stitch_state->snapIslands = !stitch_state->snapIslands;
+				stitch_process_data(stitch_state, 0, scene, 1);
 				break;
 			} else
 			return OPERATOR_RUNNING_MODAL;




More information about the Bf-blender-cvs mailing list