From 6d9610a1c6c3e89084b895b07c8b912b17608ec2 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Wed, 1 Nov 2023 11:57:46 +1100 Subject: [PATCH] options menu gets sensible default when shape changes --- gui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gui.js b/gui.js index d3a045d..410084a 100644 --- a/gui.js +++ b/gui.js @@ -57,6 +57,7 @@ class FourDGUI { options_ctrl = options_ctrl.options(options).onChange((option) => { setVisibility(option) }); + options_ctrl.setValue(options[0]) changeShape(shape) }); const options = this.getShapeOptions(shapes, this.params['shape']);