mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Modified callback to ensure that when a shapeAsset changes, groundCovers properly re-initialize to reflect the change
This commit is contained in:
parent
f31acf774e
commit
24db0305f6
|
|
@ -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()
|
||||
{
|
||||
_initShapes();
|
||||
setMaskBits(U32(-1));
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _GROUNDCOVER_H_
|
||||
|
|
|
|||
Loading…
Reference in a new issue