aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llcoordframe.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llmath/llcoordframe.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llmath/llcoordframe.cpp')
-rw-r--r--linden/indra/llmath/llcoordframe.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llmath/llcoordframe.cpp b/linden/indra/llmath/llcoordframe.cpp
index 6d18c8b..0196424 100644
--- a/linden/indra/llmath/llcoordframe.cpp
+++ b/linden/indra/llmath/llcoordframe.cpp
@@ -730,7 +730,11 @@ void LLCoordFrame::lookDir(const LLVector3 &at, const LLVector3 &up_direction)
730 left.normVec(); 730 left.normVec();
731 731
732 LLVector3 up = at % left; 732 LLVector3 up = at % left;
733 setAxes(at, left, up); 733
734 if (at.isFinite() && left.isFinite() && up.isFinite())
735 {
736 setAxes(at, left, up);
737 }
734} 738}
735 739
736void LLCoordFrame::lookDir(const LLVector3 &xuv) 740void LLCoordFrame::lookDir(const LLVector3 &xuv)