Freeze gameobject M2 animations to prevent cycling

Gameobject M2 instances (books, crates, chests) were continuously
cycling their animations because M2Renderer unconditionally loops
all sequences. Added setInstanceAnimationFrozen() and freeze all
gameobject instances at creation time so they stay in their bind pose.
This commit is contained in:
Kelsi 2026-02-23 05:31:02 -08:00
parent a58115041f
commit 58681753e5
3 changed files with 14 additions and 0 deletions

View file

@ -5730,6 +5730,9 @@ void Application::spawnOnlineGameObject(uint64_t guid, uint32_t entry, uint32_t
return;
}
// Freeze animation — gameobjects are static until interacted with
m2Renderer->setInstanceAnimationFrozen(instanceId, true);
gameObjectInstances_[guid] = {modelId, instanceId, false};
}