//
// LevelEditorLayer::updatePreviewAnim from 0x1000f4280 to 0x1000f4359 (217 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::togglePreviewAnim @ 0x10029417a
//
// 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 *v1; // rax
bool GameVariable; // al
unsigned int v3; // r14d
__int64 v4; // rax
EnhancedGameObject *v5; // r15
v1 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v1, "0118");
if ( a1->m_previewAnimations != GameVariable )
{
a1->m_previewAnimations = GameVariable;
if ( (unsigned int)sub_100720070(a1->m_objects) )
{
v3 = 0;
do
{
v4 = sub_1007200C0(a1->m_objects, v3);
v5 = (EnhancedGameObject *)v4;
if ( *(_DWORD *)(v4 + 1248) == 2 )
AnimatedGameObject::updateObjectAnimation((AnimatedGameObject *)v4);
if ( !a1->m_previewAnimations
&& ((unsigned __int8 (__fastcall *)(EnhancedGameObject *))v5->getHasSyncedAnimation)(v5) )
{
EnhancedGameObject::resetSyncedAnimation(v5);
}
if ( !a1->m_previewAnimations )
{
if ( ((unsigned __int8 (__fastcall *)(EnhancedGameObject *))v5->getHasRotateAction)(v5) )
EnhancedGameObject::updateRotateAction(v5, 0.0);
}
++v3;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_objects) );
}
}
}