diff options
Diffstat (limited to 'linden/indra/llmath/llcoordframe.cpp')
-rw-r--r-- | linden/indra/llmath/llcoordframe.cpp | 6 |
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 | ||
736 | void LLCoordFrame::lookDir(const LLVector3 &xuv) | 740 | void LLCoordFrame::lookDir(const LLVector3 &xuv) |