From afd33926119a2c2b14dd1b9f2654852683a7f52a Mon Sep 17 00:00:00 2001 From: root <> Date: Sun, 27 Apr 2025 10:09:16 +0000 Subject: [PATCH] bugfix: wrong polytope faces reproduce: 1. polytope on 2. polytope off 3. toggle physics on then off (want big change) 4. polytope on --- sketch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sketch.js b/sketch.js index 75eafd4..69cfa08 100644 --- a/sketch.js +++ b/sketch.js @@ -78,6 +78,7 @@ function draw() { const polytope_is_slow = physics && particles.length > 40 || particles.length > 120; const polytope_if_fast = polytope && !polytope_is_slow; if (physics) { + if (!polytope_if_fast) faces = []; move_particles(particles, 8e-4); }