//
// EditorUI::deleteObject from 0x6969f8 to 0x696a68 (112 bytes)
//
// 9 xrefs:
// > EditorUI::deleteSmartBlocksFromObjects @ 0x696b0c
// > EditorUI::deleteTypeFromObjects @ 0x696bd4
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4484
// > EditorUI::onDelete @ 0x6c0c68
// > EditorUI::onDeleteSelected @ 0x6c0e6c
// > EditorUI::onDeleteSelected @ 0x6c0f08
// > EditorUI::createSmartObjectsFromType @ 0x6c1454
// > EditorUI::createSmartObjectsFromTemplate @ 0x6c274c
// > ??> @ 0x7fd88
//
// 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 EditorUI::deleteObject(EditorUI *a1, GameObject *a2, bool a3)
{
if ( a2 )
{
a2->m_wasSelected = a2->m_isSelected;
EditorUI::deselectObject(a1);
LevelEditorLayer::removeObject(a1->m_editorLayer, a2, a3);
EditorUI::deactivateRotationControl(a1);
EditorUI::deactivateScaleControl(a1);
EditorUI::deactivateTransformControl(a1);
}
}