[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41316] branches/soc-2011-onion-uv-tools/ source/blender/editors/uvedit/uvedit_unwrap_ops.c: Subsurf aware unwrapper:
Antony Riakiotakis
kalast at gmail.com
Thu Oct 27 16:41:00 CEST 2011
Revision: 41316
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41316
Author: psy-fi
Date: 2011-10-27 14:40:59 +0000 (Thu, 27 Oct 2011)
Log Message:
-----------
Subsurf aware unwrapper:
===========================
Substitute -1 with ORIGINDEX_NONE
Modified Paths:
--------------
branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c
Modified: branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
--- branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c 2011-10-27 13:41:28 UTC (rev 41315)
+++ branches/soc-2011-onion-uv-tools/source/blender/editors/uvedit/uvedit_unwrap_ops.c 2011-10-27 14:40:59 UTC (rev 41316)
@@ -463,7 +463,7 @@
/* This is where all the magic is done. If the vertex exists in the, we pass the original uv pointer to the solver, thus
* flushing the solution to the edit mesh. */
- if(origVertIndices[face->v1] == -1){
+ if(origVertIndices[face->v1] == ORIGINDEX_NONE){
uv[0] = texface->uv[0];
pin[0] = 0;
select[0] = !!1;
@@ -471,21 +471,21 @@
else{
get_TexFace_Attributes_from_Index(origFace, origtexface, origVertIndices[face->v1], &uv[0], &pin[0], &select[0], scene);
}
- if(origVertIndices[face->v2] == -1){
+ if(origVertIndices[face->v2] == ORIGINDEX_NONE){
uv[1] = texface->uv[1];
pin[1] = 0;
select[1] = !!1;
} else{
get_TexFace_Attributes_from_Index(origFace, origtexface, origVertIndices[face->v2], &uv[1], &pin[1], &select[1], scene);
}
- if(origVertIndices[face->v3] == -1){
+ if(origVertIndices[face->v3] == ORIGINDEX_NONE){
uv[2] = texface->uv[2];
pin[2] = 0;
select[2] = !!1;
} else{
get_TexFace_Attributes_from_Index(origFace, origtexface, origVertIndices[face->v3], &uv[2], &pin[2], &select[2], scene);
}
- if(origVertIndices[face->v4] == -1){
+ if(origVertIndices[face->v4] == ORIGINDEX_NONE){
uv[3] = texface->uv[3];
pin[3] = 0;
select[3] = !!1;
More information about the Bf-blender-cvs
mailing list