Merge pull request #490 from Azaezel/alpha40/StaticShapeUnmountFix

connects staticshape::unmount to the parent chain so it can actually do so
This commit is contained in:
Brian Roberts 2021-06-22 12:01:56 -05:00 committed by GitHub
commit db4f4984ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,8 +260,9 @@ void StaticShape::setTransform(const MatrixF& mat)
setMaskBits(PositionMask);
}
void StaticShape::onUnmount(SceneObject*,S32)
void StaticShape::onUnmount(SceneObject* obj, S32 node)
{
Parent::onUnmount(obj, node);
// Make sure the client get's the final server pos.
setMaskBits(PositionMask);
}