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:
parent
78f2ccc6db
commit
a1ed14f4c2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue