Updated params.closed logic

This commit is contained in:
Teoxoy 2019-01-08 12:53:13 +01:00 committed by Don McCurdy
parent e67269a3f7
commit e17b91970c

View File

@ -336,8 +336,10 @@ const GUI = function(pars) {
// Are we a root level GUI? // Are we a root level GUI?
if (common.isUndefined(params.parent)) { if (common.isUndefined(params.parent)) {
if (!params.closed) { if (params.closed) {
this.closed = params.closed; this.closed = params.closed;
} else {
params.closed = false;
} }
dom.addClass(this.domElement, GUI.CLASS_MAIN); dom.addClass(this.domElement, GUI.CLASS_MAIN);