diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llsprite.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/llsprite.cpp')
-rw-r--r-- | linden/indra/newview/llsprite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llsprite.cpp b/linden/indra/newview/llsprite.cpp index 7da1d48..0032ee8 100644 --- a/linden/indra/newview/llsprite.cpp +++ b/linden/indra/newview/llsprite.cpp | |||
@@ -126,8 +126,8 @@ void LLSprite::updateFace(LLFace &face) | |||
126 | LLVector3 camera_vec = mPosition - sCameraPosition; | 126 | LLVector3 camera_vec = mPosition - sCameraPosition; |
127 | mScaledRight = camera_vec % LLVector3(0.f, 0.f, 1.f); | 127 | mScaledRight = camera_vec % LLVector3(0.f, 0.f, 1.f); |
128 | mScaledUp = -(camera_vec % mScaledRight); | 128 | mScaledUp = -(camera_vec % mScaledRight); |
129 | mScaledUp.normVec(); | 129 | mScaledUp.normalize(); |
130 | mScaledRight.normVec(); | 130 | mScaledRight.normalize(); |
131 | mScaledUp *= mHeightDiv2; | 131 | mScaledUp *= mHeightDiv2; |
132 | mScaledRight *= mWidthDiv2; | 132 | mScaledRight *= mWidthDiv2; |
133 | 133 | ||
@@ -156,7 +156,7 @@ void LLSprite::updateFace(LLFace &face) | |||
156 | else | 156 | else |
157 | { | 157 | { |
158 | x_axis = sNormal % LLVector3(0.f, -1.f, 0.f); | 158 | x_axis = sNormal % LLVector3(0.f, -1.f, 0.f); |
159 | x_axis.normVec(); | 159 | x_axis.normalize(); |
160 | 160 | ||
161 | y_axis = sNormal % x_axis; | 161 | y_axis = sNormal % x_axis; |
162 | } | 162 | } |