Explorar el Código

initial assignment cleanup (also shapebase for staticShape et al)

Azaezel hace 9 años
padre
commit
9a4acc8a46
Se han modificado 2 ficheros con 8 adiciones y 5 borrados
  1. 5 1
      Engine/source/T3D/shapeBase.cpp
  2. 3 4
      Engine/source/T3D/tsStatic.cpp

+ 5 - 1
Engine/source/T3D/shapeBase.cpp

@@ -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;
 }
 }
 
 

+ 3 - 4
Engine/source/T3D/tsStatic.cpp

@@ -310,11 +310,10 @@ bool TSStatic::onAdd()
 
 
    _updateShouldTick();
    _updateShouldTick();
 
 
-   // Accumulation
-   if ( isClientObject() && mShapeInstance )
+   // Accumulation and environment mapping
+   if (isClientObject() && mShapeInstance)
    {
    {
-      if ( mShapeInstance->hasAccumulation() ) 
-         AccumulationVolume::addObject(this);
+      AccumulationVolume::addObject(this);
    }
    }
 
 
    return true;
    return true;