//
// EditorUI::deleteObject from 0x1003e9be8 to 0x1003e9c4c (100 bytes)
//
// 8 xrefs:
// > EditorUI::onDeleteSelected @ 0x1003c75dc
// > EditorUI::onDeleteSelected @ 0x1003c763c
// > EditorUI::onDelete @ 0x1003e6ae8
// > EditorUI::deleteSmartBlocksFromObjects @ 0x1003eaf14
// > EditorUI::deleteTypeFromObjects @ 0x1003eafcc
// > EditorUI::addObjectsToSmartTemplate @ 0x1003f141c
// > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1e24
// > EditorUI::createSmartObjectsFromType @ 0x1003f28b0
//
// 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 EditorUI::deleteObject(EditorUI *a1, GameObject *a2, bool a3)
{
if ( a2 )
{
a2->m_wasSelected = a2->m_isSelected;
EditorUI::deselectObject(a1, a2);
LevelEditorLayer::removeObject(a1->m_editorLayer, a2, a3);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateTransformControl(a1);
}
}