Holy vibecode Batman!

This commit is contained in:
shweet committed 2026-05-21 21:00:57 -04:00
1 parent 7db835e6d4
commit 1bc5199e3b
140 files changed
+11888 -9481

No files matched your search

+5 -2
View File
@@ -6,6 +6,7 @@
#include "strings.hpp"
#include "tool.hpp"
#include "types.hpp"
#include "util/imgui/imgui.hpp"
using namespace anm2ed::resource;
using namespace anm2ed::types;
@@ -30,10 +31,12 @@ namespace anm2ed::imgui
switch (type)
{
case tool::UNDO:
if (document.is_able_to_undo()) document.undo();
if (document.is_able_to_undo())
manager.command_push({manager.selected, [](Manager&, Document& document) { document.undo(); }});
break;
case tool::REDO:
if (document.is_able_to_redo()) document.redo();
if (document.is_able_to_redo())
manager.command_push({manager.selected, [](Manager&, Document& document) { document.redo(); }});
break;
case tool::COLOR:
colorEditPopup.open();