diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-09-27 12:23:15 +0200 |
---|---|---|
committer | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-09-27 16:44:11 +0200 |
commit | 0acf91559868de2929c7104cf5f11a5f7e3ce2f1 (patch) | |
tree | 2761fd38e909b60cfc2d79b53a1524f943d61c3e /indra/newview | |
parent | 8e173de3096a8bf79e0fa0aa5c5bd6a696dc20f8 (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 17c834326c..7721e20738 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)); |