From 033a9099d6e021bdefb4e1d13e6fb096b65f79e7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 15 May 2020 22:52:52 +0200 Subject: [PATCH] improved discrete animation while affine --- graph.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graph.cpp b/graph.cpp index b8da558b..11a1b90f 100644 --- a/graph.cpp +++ b/graph.cpp @@ -2337,6 +2337,14 @@ EX bool applyAnimation(cell *c, transmatrix& V, double& footphase, int layer) { } a.wherenow = a.wherenow * rspintox(wnow); a.wherenow = a.wherenow * xpush(aspd); + if(cgflags & qAFFINE) { + transmatrix T = a.wherenow; + fixmatrix_euclid(T); + a.wherenow = inverse(T) * a.wherenow; + for(int i=0; i