1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

only call on animate cb if available

This commit is contained in:
Lars Mueller 2025-02-04 16:03:01 +01:00
parent 78f2ccc6db
commit a1ed14f4c2

View file

@ -186,7 +186,8 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs)
// TODO if there are no bone overrides or no animation blending, this is unnecessary.
copyOldTransforms();
OnAnimateCallback(timeMs / 1000.0f);
if (OnAnimateCallback)
OnAnimateCallback(timeMs / 1000.0f);
IAnimatedMeshSceneNode::OnAnimate(timeMs);