From fa09a1f40a7bbcdba25b00f0a7654b70d69c280b Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sun, 15 May 2022 12:55:30 +0200 Subject: [PATCH] :wrench: Try fix CI --- extension.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extension.js b/extension.js index 44e71a8..c095b10 100644 --- a/extension.js +++ b/extension.js @@ -491,14 +491,14 @@ class Extension { // Set one-time uniforms. shader.beginAnimation(this._settings, forOpening, actor); - // If not in test mode, we update uniforms at each frame. - if (testMode) { - shader.updateAnimation(0.5, duration / 2); - } else { - transition.connect('new-frame', (t) => { + // Set other uniforms each frame. + transition.connect('new-frame', (t) => { + if (testMode) { + shader.updateAnimation(0.5, duration / 2); + } else { shader.updateAnimation(t.get_progress(), 0.001 * t.get_elapsed_time()); - }); - } + } + }); // Remove the effect if the animation finished or was interrupted. if (forOpening) {