[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42760] trunk/blender/source/blender/ modifiers/intern/MOD_uvproject.c: Fix a small typo-bug in UVProject modifier ( using v3 instead of v4 to detect tri/quad faces).

Bastien Montagne montagne29 at wanadoo.fr
Tue Dec 20 10:57:07 CET 2011


Revision: 42760
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42760
Author:   mont29
Date:     2011-12-20 09:57:01 +0000 (Tue, 20 Dec 2011)
Log Message:
-----------
Fix a small typo-bug in UVProject modifier (using v3 instead of v4 to detect tri/quad faces). Seems it was harmless, though...

Modified Paths:
--------------
    trunk/blender/source/blender/modifiers/intern/MOD_uvproject.c

Modified: trunk/blender/source/blender/modifiers/intern/MOD_uvproject.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_uvproject.c	2011-12-20 08:47:36 UTC (rev 42759)
+++ trunk/blender/source/blender/modifiers/intern/MOD_uvproject.c	2011-12-20 09:57:01 UTC (rev 42760)
@@ -290,7 +290,7 @@
 					project_from_camera(tface->uv[0], coords[mf->v1], projectors[0].uci);
 					project_from_camera(tface->uv[1], coords[mf->v2], projectors[0].uci);
 					project_from_camera(tface->uv[2], coords[mf->v3], projectors[0].uci);
-					if(mf->v3)
+					if(mf->v4)
 						project_from_camera(tface->uv[3], coords[mf->v4], projectors[0].uci);
 				}
 				else {
@@ -343,7 +343,7 @@
 					project_from_camera(tface->uv[0], coords[mf->v1], best_projector->uci);
 					project_from_camera(tface->uv[1], coords[mf->v2], best_projector->uci);
 					project_from_camera(tface->uv[2], coords[mf->v3], best_projector->uci);
-					if(mf->v3)
+					if(mf->v4)
 						project_from_camera(tface->uv[3], coords[mf->v4], best_projector->uci);
 				}
 				else {




More information about the Bf-blender-cvs mailing list