From 2bfad340ff479d43831b43000c94a5c72f53416c Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 20 Dec 2011 09:57:01 +0000 Subject: Fix a small typo-bug in UVProject modifier (using v3 instead of v4 to detect tri/quad faces). Seems it was harmless, though... --- source/blender/modifiers/intern/MOD_uvproject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/modifiers/intern/MOD_uvproject.c b/source/blender/modifiers/intern/MOD_uvproject.c index 3146d1c9d5d..71292c6e521 100644 --- a/source/blender/modifiers/intern/MOD_uvproject.c +++ b/source/blender/modifiers/intern/MOD_uvproject.c @@ -290,7 +290,7 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd, 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 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd, 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 { -- cgit v1.2.3