diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-09-27 12:23:15 +0200 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2023-09-27 16:39:08 +0200 |
commit | 08579cdb1968979b43d9bc8df54e6f2ecfa60051 (patch) | |
tree | 8fd4b630c5fe142b4a43c867bee90ebbf138bff9 /indra/newview | |
parent | 5713d1a3fdad397c2f9071bdc39db976950b97b1 (diff) |
SL-20346 Avoid of ASSERT (pos.isFinite()) in drawBoxOutline()
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llspatialpartition.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 39ed23e131..8bd40f2f31 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -1300,17 +1300,8 @@ void drawBox(const LLVector4a& c, const LLVector4a& r) void drawBoxOutline(const LLVector3& pos, const LLVector3& size) { - - llassert(pos.isFinite()); - llassert(size.isFinite()); - - llassert(!llisnan(pos.mV[0])); - llassert(!llisnan(pos.mV[1])); - llassert(!llisnan(pos.mV[2])); - - llassert(!llisnan(size.mV[0])); - llassert(!llisnan(size.mV[1])); - llassert(!llisnan(size.mV[2])); + if (!pos.isFinite() || !size.isFinite()) + return; LLVector3 v1 = size.scaledVec(LLVector3( 1, 1,1)); LLVector3 v2 = size.scaledVec(LLVector3(-1, 1,1)); |