Skip to content

Commit

Permalink
Upload demo and undo for leaf vis
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Jan 25, 2024
1 parent 65e1018 commit c703567
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ quaketest.txt
vs-project/fmt/fmt/Debug/fmtd.idb
vs-project/glfw/src/Debug/glfw3.idb
*.ent
!demo/*.bsp
Binary file added demo/demo_vis_editor.bsp
Binary file not shown.
5 changes: 5 additions & 0 deletions src/editor/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9695,6 +9695,8 @@ void Gui::drawFaceEditorWidget()

if (!removed.allZero())
removed.print_delete_stats(1);

mapRenderer->pushModelUndoState("UPDATE LEAF VISIBILITY", FL_VISIBILITY);
}

ImGui::PopStyleColor();
Expand Down Expand Up @@ -9736,6 +9738,9 @@ void Gui::drawFaceEditorWidget()

if (!removed.allZero())
removed.print_delete_stats(1);


mapRenderer->pushModelUndoState("UPDATE LEAF VISIBILITY", FL_VISIBILITY);
}
ImGui::PopStyleColor();

Expand Down

0 comments on commit c703567

Please sign in to comment.