From c3f69d75a76851748068ebc5fda0e347573757a3 Mon Sep 17 00:00:00 2001 From: Blair MacIntyre Date: Fri, 20 Apr 2018 11:47:55 -0400 Subject: [PATCH] bug in internal anchor removal --- polyfill/XRSession.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polyfill/XRSession.js b/polyfill/XRSession.js index 99b3552..de1e2d1 100644 --- a/polyfill/XRSession.js +++ b/polyfill/XRSession.js @@ -82,9 +82,9 @@ export default class XRSession extends EventHandlerBase { end(){ if(this._ended) return for (var i = 0; i< this._frameAnchors.length; i++) { - this._display._reality._removeAnchor(this._frameAnchors[i]) + this._display._reality._removeAnchor(this._frameAnchors[i].uid) } - this._frameAnchors = null; + this._frameAnchors = []; this._ended = true this._display._stop() return new Promise((resolve, reject) => {