diff --git a/tools/gltfExample/index.js b/tools/gltfExample/index.js index fe16e65..00a876b 100644 --- a/tools/gltfExample/index.js +++ b/tools/gltfExample/index.js @@ -39,8 +39,10 @@ class GLTFExample2 { const rootWhenClosed = document.querySelector('#rootWhenClosed'); this.#envelope = new Envelope(this.#spatialInterface, [], rootWhenOpened, rootWhenClosed, isStackable, areFramesOrdered, isFullscreenFull2D, opensWhenAdded); this.#envelope.onOpen(() => { + this.#baseTool.setVisible(true); }); this.#envelope.onClose(() => { + this.#baseTool.setVisible(false); }); this.#envelope.onBlur(() => { });