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-04-28 01:56:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-28 01:56:28 +0400
commit2810331119f09fde9e5f8a090100412c96e6d2e6 (patch)
tree15ec5d00a9633b8038181a33c091f9d43a184a58 /source/blender/blenlib/intern/uvproject.c
parent25e82fe62d3f6e18d0121146dc4cd91397281372 (diff)
minor changes, BLI_uvproject_from_view was doing matrix multiply for no reason, quiet float/double warning.
Diffstat (limited to 'source/blender/blenlib/intern/uvproject.c')
-rw-r--r--source/blender/blenlib/intern/uvproject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c
index 05ebc9500a1..a741c9858c3 100644
--- a/source/blender/blenlib/intern/uvproject.c
+++ b/source/blender/blenlib/intern/uvproject.c
@@ -95,9 +95,7 @@ void BLI_uvproject_from_camera(float target[2], float source[3], ProjCameraInfo
/* could rv3d->persmat */
void BLI_uvproject_from_view(float target[2], float source[3], float persmat[4][4], float rotmat[4][4], float winx, float winy)
{
- float pv[3], pv4[4], x = 0.0, y = 0.0;
-
- mul_v3_m4v3(pv, rotmat, source);
+ float pv4[4], x = 0.0, y = 0.0;
copy_v3_v3(pv4, source);
pv4[3] = 1.0;