Modified callback to ensure that when a shapeAsset changes, groundCovers properly re-initialize to reflect the change

This commit is contained in:
JeffR 2025-04-24 13:24:26 -05:00
parent f31acf774e
commit 24db0305f6
2 changed files with 9 additions and 2 deletions

View file

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