aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmanip.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/newview/llmanip.cpp
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz
Second Life viewer sources 1.13.2.15
Diffstat (limited to 'linden/indra/newview/llmanip.cpp')
-rw-r--r--linden/indra/newview/llmanip.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/linden/indra/newview/llmanip.cpp b/linden/indra/newview/llmanip.cpp
index 538e6df..20d77e0 100644
--- a/linden/indra/newview/llmanip.cpp
+++ b/linden/indra/newview/llmanip.cpp
@@ -107,9 +107,7 @@ void LLManip::getManipNormal(LLViewerObject* object, EManipPart manip, LLVector3
107 LLVector3 arrow_axis; 107 LLVector3 arrow_axis;
108 getManipAxis(object, manip, arrow_axis); 108 getManipAxis(object, manip, arrow_axis);
109 109
110 LLVector3 origin_dir = grid_origin - gCamera->getOrigin(); 110 LLVector3 cross = arrow_axis % gCamera->getAtAxis();
111 origin_dir.normVec();
112 LLVector3 cross = arrow_axis % origin_dir;
113 normal = cross % arrow_axis; 111 normal = cross % arrow_axis;
114 normal.normVec(); 112 normal.normVec();
115 } 113 }