From 8f6f7bec71fc85ef13e8a14b3655b78e0d86dfd8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 21 Oct 2019 22:38:51 +0200 Subject: [PATCH] manual-animation:: added [] to save animation (works in crystal) --- devmods/manual-animation.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/devmods/manual-animation.cpp b/devmods/manual-animation.cpp index 834807d0..4134b6b8 100644 --- a/devmods/manual-animation.cpp +++ b/devmods/manual-animation.cpp @@ -186,6 +186,39 @@ bool trailer_handleKey(int sym, int uni) { tie(View, nisot::local_perspective, hybrid::current_view_level, viewctr) = saved.back(); return true; } + + if(sym == '[') { + fhstream f("devmods/manan-record.mar", "w"); + f.write(isize(saved)); + for(int i=0; i(siz); + saved.resize(siz); + for(int i=0; i