From e89dc91182a94e48ca9220a2fe075db680ddff04 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Tue, 16 Aug 2022 15:06:45 -0400 Subject: undo functional --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index ac4ddd1..74aaec6 100644 --- a/main.cpp +++ b/main.cpp @@ -99,7 +99,7 @@ MainFunction(main_sdl *Main, memory *Memory, CalculateKeyframesLinearly(File->CurrentFrame, &Layer->Property[r]); } } - Layer_UpdateBitmap(Layer, Memory, File->CurrentFrame); + Layer_UpdateBitmap(File, Layer, Memory, File->CurrentFrame); } } State->UpdateKeyframes = false; @@ -262,7 +262,6 @@ int main(int argc, char *argv[]) { LoadTestFootage(&File, &State, &Memory); - Assert(0); #if DEBUG // GDB and LLDB say this plain struct that's literally under 30 bytes is @@ -462,7 +461,9 @@ int main(int argc, char *argv[]) { ImGui_PropertiesPanel(&File, &State, &UI, &Memory); ImGui_Timeline(&File, &State, &Memory, &UI, io); + #if DEBUG + ImGui_DebugUndoTree(&File, &Memory); if (Debug.ToggleWindow) { ImGui::ShowDemoWindow(); ImGui_DebugMemoryViewer(&File, &Memory); -- cgit v1.2.3