From b26dbef1d4b62e1e09cbb309c1b82b4a9fe6c08d Mon Sep 17 00:00:00 2001 From: Jang Haemin Date: Sun, 9 May 2021 08:08:18 +0900 Subject: [PATCH] Update hide boolean when GUI hide or show --- src/dat/gui/GUI.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index dbf1ae60..454bf9c9 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -688,6 +688,7 @@ common.extend( * Hides the GUI. */ hide: function() { + hide = true; this.domElement.style.display = 'none'; }, @@ -695,6 +696,7 @@ common.extend( * Shows the GUI. */ show: function() { + hide = false; this.domElement.style.display = ''; },