From a1ed14f4c2478908a8aa3c67db3ca882b9b41a3a Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Tue, 4 Feb 2025 16:03:01 +0100 Subject: [PATCH] only call on animate cb if available --- irr/src/CAnimatedMeshSceneNode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irr/src/CAnimatedMeshSceneNode.cpp b/irr/src/CAnimatedMeshSceneNode.cpp index abf220252..5fd2982b9 100644 --- a/irr/src/CAnimatedMeshSceneNode.cpp +++ b/irr/src/CAnimatedMeshSceneNode.cpp @@ -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);