From 5dba43864b974a76f08dee6fd538180608e5cea6 Mon Sep 17 00:00:00 2001 From: Nicky Date: Tue, 10 Sep 2013 11:48:00 +0200 Subject: [PATCH] FIRE-11593; Remove internal limit 2^20 for lloctree if compiled for OpenSim. --- indra/llmath/lloctree.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llmath/lloctree.h b/indra/llmath/lloctree.h index 53fae50d6a..ebcf9651ec 100755 --- a/indra/llmath/lloctree.h +++ b/indra/llmath/lloctree.h @@ -734,6 +734,7 @@ public: return false; } +#ifndef OPENSIM // FIRE-11593; Don't limit center of octree to 2^20, otherwise we end with the famous longjump bug (cannot TP further than 4095 regions [4096*256 = 2^20] LLVector4a MAX_MAG; MAX_MAG.splat(1024.f*1024.f); @@ -749,6 +750,7 @@ public: //OCT_ERRS << "!!! ELEMENT EXCEEDS RANGE OF SPATIAL PARTITION !!!" << llendl; return false; } +#endif // FIRE-11593 if (this->getSize()[0] > data->getBinRadius() && this->isInside(data->getPositionGroup())) {