Skip to content

Commit

Permalink
Deleting Model Changes Position (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed May 10, 2022
1 parent 962190c commit ada4570
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ada4570

Please sign in to comment.