options menu gets sensible default when shape changes
parent
c481d24f3c
commit
6d9610a1c6
1
gui.js
1
gui.js
|
@ -57,6 +57,7 @@ class FourDGUI {
|
||||||
options_ctrl = options_ctrl.options(options).onChange((option) => {
|
options_ctrl = options_ctrl.options(options).onChange((option) => {
|
||||||
setVisibility(option)
|
setVisibility(option)
|
||||||
});
|
});
|
||||||
|
options_ctrl.setValue(options[0])
|
||||||
changeShape(shape)
|
changeShape(shape)
|
||||||
});
|
});
|
||||||
const options = this.getShapeOptions(shapes, this.params['shape']);
|
const options = this.getShapeOptions(shapes, this.params['shape']);
|
||||||
|
|
Loading…
Reference in New Issue