Merge pull request #1642 from Azaezel/globalAccumulation

level-wide accumulation assignment
This commit is contained in:
Anis 2016-08-07 02:31:45 +02:00 committed by GitHub
commit 4c59f39c09
5 changed files with 62 additions and 10 deletions

View file

@ -1044,7 +1044,11 @@ bool ShapeBase::onAdd()
if(mDataBlock->cloakTexName != StringTable->insert(""))
mCloakTexture = TextureHandle(mDataBlock->cloakTexName, MeshTexture, false);
*/
// Accumulation and environment mapping
if (isClientObject() && mShapeInstance)
{
AccumulationVolume::addObject(this);
}
return true;
}