mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Updated params.closed logic
This commit is contained in:
parent
e67269a3f7
commit
e17b91970c
@ -336,8 +336,10 @@ const GUI = function(pars) {
|
||||
|
||||
// Are we a root level GUI?
|
||||
if (common.isUndefined(params.parent)) {
|
||||
if (!params.closed) {
|
||||
if (params.closed) {
|
||||
this.closed = params.closed;
|
||||
} else {
|
||||
params.closed = false;
|
||||
}
|
||||
|
||||
dom.addClass(this.domElement, GUI.CLASS_MAIN);
|
||||
|
Loading…
Reference in New Issue
Block a user