@@ -852,8 +852,11 @@ void GroundCover::unpackUpdate( NetConnection *connection, BitStream *stream )
// It's sloppy, but it works for now.
_freeCells();
- if ( isProperlyAdded() )
+ if (isProperlyAdded())
+ {
_initMaterial();
+ _initShapes();
+ }
}
@@ -410,7 +410,11 @@ protected:
void _debugRender( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *overrideMat );
- void onShapeChanged(){}
+ void onShapeChanged()
+ setMaskBits(U32(-1));
};
#endif // _GROUNDCOVER_H_