FIRE-11593; Remove internal limit 2^20 for lloctree if compiled for OpenSim.

master
Nicky 2013-09-10 11:48:00 +02:00
parent 2eb3ddb149
commit 5dba43864b
1 changed files with 2 additions and 0 deletions

View File

@ -734,6 +734,7 @@ public:
return false;
}
#ifndef OPENSIM // <FS:ND> 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 // <FS:ND> FIRE-11593
if (this->getSize()[0] > data->getBinRadius() && this->isInside(data->getPositionGroup()))
{