From 25d2f6242e1c7a085d1cd9161cf9201db6a10074 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 21 Oct 2019 22:39:29 +0200 Subject: [PATCH] manual-animation:: cleaner skipping --- devmods/manual-animation.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/devmods/manual-animation.cpp b/devmods/manual-animation.cpp index 4134b6b8..07b42fb9 100644 --- a/devmods/manual-animation.cpp +++ b/devmods/manual-animation.cpp @@ -249,16 +249,21 @@ bool trailer_handleKey(int sym, int uni) { // sightranges[geometry] = 4; static int lasti = 0; + system("mkdir -p devmods/manual/"); + for(auto& p: saved) { // sightranges[geometry] = 4 + i * 2. / isize(saved); tie(View, nisot::local_perspective, hybrid::current_view_level, viewctr) = p; ticks = i * 1000 / 30; - if(i < lasti) continue; + // if(i % 10 != 0) {i++; continue; } + + if(true) { + println(hlog, "recording frame ", i); + shot::take(format("devmods/manual/%05d.png", i)); + } + else + println(hlog, "skipping frame ", i); - system("mkdir -p devmods/manual/"); - - shot::take(format("devmods/manual/%05d.png", i)); - println(hlog, "frame ", i); i++; }