From 962190c933514391a780dcbfc5562029440a426b Mon Sep 17 00:00:00 2001 From: datacrystals Date: Tue, 10 May 2022 02:20:02 +0000 Subject: [PATCH] Deleting Model Changes Position (#161) --- .../GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteSpotLight.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteSpotLight.cpp b/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteSpotLight.cpp index dcb9bfaa21..36d6f4f7e3 100644 --- a/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteSpotLight.cpp +++ b/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteSpotLight.cpp @@ -58,6 +58,7 @@ void Subwindow_DeleteSpotLight::UpdateConfirmDeletePopup() { if (ImGui::Button("Confirm", ImVec2(120, 0)) || ImGui::IsKeyPressed(GLFW_KEY_ENTER)) { // If Button Pressed, Or Enter Key Pressed SceneManager_->Scenes_[SceneIndex_]->SpotLights.erase(SceneManager_->Scenes_[SceneIndex_]->SpotLights.begin() + SpotLightIndex_); ShowDeleteConfirm_ = false; + SceneManager_->Scenes_[SceneManager_->ActiveScene_]->HasSelectionChanged = true; } ImGui::SameLine(); if (ImGui::Button("Abort", ImVec2(120, 0)) || ImGui::IsKeyPressed(GLFW_KEY_ESCAPE)) { // If Button Pressed, Or Escape Key Pressed