mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
initial assignment cleanup (also shapebase for staticShape et al)
This commit is contained in:
parent
2237a13679
commit
9a4acc8a46
2 changed files with 8 additions and 5 deletions
|
|
@ -1044,7 +1044,11 @@ bool ShapeBase::onAdd()
|
||||||
if(mDataBlock->cloakTexName != StringTable->insert(""))
|
if(mDataBlock->cloakTexName != StringTable->insert(""))
|
||||||
mCloakTexture = TextureHandle(mDataBlock->cloakTexName, MeshTexture, false);
|
mCloakTexture = TextureHandle(mDataBlock->cloakTexName, MeshTexture, false);
|
||||||
*/
|
*/
|
||||||
|
// Accumulation and environment mapping
|
||||||
|
if (isClientObject() && mShapeInstance)
|
||||||
|
{
|
||||||
|
AccumulationVolume::addObject(this);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -310,11 +310,10 @@ bool TSStatic::onAdd()
|
||||||
|
|
||||||
_updateShouldTick();
|
_updateShouldTick();
|
||||||
|
|
||||||
// Accumulation
|
// Accumulation and environment mapping
|
||||||
if ( isClientObject() && mShapeInstance )
|
if (isClientObject() && mShapeInstance)
|
||||||
{
|
{
|
||||||
if ( mShapeInstance->hasAccumulation() )
|
AccumulationVolume::addObject(this);
|
||||||
AccumulationVolume::addObject(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue