diff --git a/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteDirectionalLight.cpp b/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteDirectionalLight.cpp index 827728c205..bbcb1c1726 100644 --- a/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteDirectionalLight.cpp +++ b/Source/Core/Editor/Windows/GUI_Window_SceneTree/ERS_GUI_CLASS_DeleteDirectionalLight.cpp @@ -58,6 +58,7 @@ void Subwindow_DeleteDirectionalLight::UpdateConfirmDeletePopup() { if (ImGui::Button("Confirm", ImVec2(120, 0)) || ImGui::IsKeyPressed(GLFW_KEY_ENTER)) { // If Button Pressed, Or Enter Key Pressed SceneManager_->Scenes_[SceneIndex_]->DirectionalLights.erase(SceneManager_->Scenes_[SceneIndex_]->DirectionalLights.begin() + DirectionalLightIndex_); 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