From 689adb86812ad4da76b99f12b500f1a354561778 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 13 Feb 2020 11:04:52 +0100 Subject: [PATCH] manual-animation: 'u' now can clear the whole recording --- devmods/manual-animation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devmods/manual-animation.cpp b/devmods/manual-animation.cpp index 9f429d9a..e21f0e5f 100644 --- a/devmods/manual-animation.cpp +++ b/devmods/manual-animation.cpp @@ -339,10 +339,10 @@ bool trailer_handleKey(int sym, int uni) { return true; } - if(sym == 'u' && isize(saved) > 40) { - for(int i=0; i<30; i++) saved.pop_back(); + if(sym == 'u') { + for(int i=0; i<30; i++) if(isize(saved)) saved.pop_back(); println(hlog, "back to ", isize(saved), " frames"); - recall(); + if(isize(saved)) recall(); return true; }