//
// LevelEditorLayer::updatePreviewAnim from 0x100364078 to 0x100364154 (220 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::togglePreviewAnim @ 0x10039e228
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelEditorLayer::updatePreviewAnim(LevelEditorLayer *a1)
{
GameManager *v2; // x0
_BOOL4 GameVariable; // w0
unsigned int v4; // w20
__int64 v5; // x0
EnhancedGameObject *v6; // x21
v2 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v2, "0118");
if ( a1->m_previewAnimations != GameVariable )
{
a1->m_previewAnimations = GameVariable;
if ( (unsigned int)sub_10024A36C((__int64)a1->m_objects) )
{
v4 = 0;
do
{
v5 = sub_10024A388((__int64)a1->m_objects, v4);
v6 = (EnhancedGameObject *)v5;
if ( *(_DWORD *)(v5 + 1248) == 2 )
AnimatedGameObject::updateObjectAnimation((AnimatedGameObject *)v5);
if ( !a1->m_previewAnimations
&& ((unsigned int (__fastcall *)(EnhancedGameObject *))v6->getHasSyncedAnimation)(v6) )
{
EnhancedGameObject::resetSyncedAnimation(v6);
}
if ( !a1->m_previewAnimations )
{
if ( ((unsigned int (__fastcall *)(EnhancedGameObject *))v6->getHasRotateAction)(v6) )
EnhancedGameObject::updateRotateAction(v6, 0.0);
}
++v4;
}
while ( v4 < (unsigned int)sub_10024A36C((__int64)a1->m_objects) );
}
}
}