mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
DecalManager scene container fix
In reference to https://github.com/GarageGames/Torque3D/issues/474 this is a general fix for all global bounds objects.
This commit is contained in:
parent
1684501ad0
commit
5406afa884
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ void SceneContainer::insertIntoBins(SceneObject* obj)
|
|||
|
||||
// For huge objects, dump them into the overflow bin. Otherwise, everything
|
||||
// goes into the grid...
|
||||
if ((maxX - minX + 1) < csmNumBins || (maxY - minY + 1) < csmNumBins && !obj->isGlobalBounds())
|
||||
if (!obj->isGlobalBounds() && ((maxX - minX + 1) < csmNumBins || (maxY - minY + 1) < csmNumBins))
|
||||
{
|
||||
SceneObjectRef** pCurrInsert = &obj->mBinRefHead;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue