Update hide boolean when GUI hide or show

This commit is contained in:
Jang Haemin 2021-05-09 08:08:18 +09:00
parent 40f4fc193e
commit b26dbef1d4

View File

@ -688,6 +688,7 @@ common.extend(
* Hides the GUI. * Hides the GUI.
*/ */
hide: function() { hide: function() {
hide = true;
this.domElement.style.display = 'none'; this.domElement.style.display = 'none';
}, },
@ -695,6 +696,7 @@ common.extend(
* Shows the GUI. * Shows the GUI.
*/ */
show: function() { show: function() {
hide = false;
this.domElement.style.display = ''; this.domElement.style.display = '';
}, },