options menu gets sensible default when shape changes

feature-120-cell-layers
Mike Lynch 2023-11-01 11:57:46 +11:00
parent c481d24f3c
commit 6d9610a1c6
1 changed files with 1 additions and 0 deletions

1
gui.js
View File

@ -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']);