Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-08 16:55:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-08 16:55:36 +0400
commit89c8de1f48607a5d887b44966be220ed9bf93285 (patch)
tree270d805e57d96f64c395df8505b2100d22dddf2e /source/blender/modifiers/intern
parent7d4eee2b1879e7e1224787761d3ef3bfe4a891d6 (diff)
add matrix multiply for projection that outputs 2d values.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_uvproject.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/modifiers/intern/MOD_uvproject.c b/source/blender/modifiers/intern/MOD_uvproject.c
index 962ff161ebc..45901f4a303 100644
--- a/source/blender/modifiers/intern/MOD_uvproject.c
+++ b/source/blender/modifiers/intern/MOD_uvproject.c
@@ -321,12 +321,7 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd,
do {
unsigned int lidx = mp->loopstart + fidx;
unsigned int vidx = mloop[lidx].v;
- float tco[3];
-
- copy_v3_v3(tco, coords[vidx]);
- mul_project_m4_v3(best_projector->projmat, tco);
- copy_v2_v2(mloop_uv[lidx].uv, tco);
-
+ mul_v2_project_m4_v3(mloop_uv[lidx].uv, best_projector->projmat, coords[vidx]);
} while (fidx--);
}
}