void CommandToggleVisibilityTool::Execute() { SceneEditorScreenMain *screen = dynamic_cast<SceneEditorScreenMain *>(UIScreenManager::Instance()->GetScreen()); if(screen) { screen->VisibilityToolTriggered(); } }
void CommandToggleVisibilityTool::Execute() { SceneEditorScreenMain *screen = dynamic_cast<SceneEditorScreenMain *>(UIScreenManager::Instance()->GetScreen()); if(screen) { screen->VisibilityToolTriggered(); GUIState::Instance()->SetNeedUpdatedToolsMenu(true); GUIState::Instance()->SetNeedUpdatedToolbar(true); } }