aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llsprite.cpp6
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 }