We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1f69a commit bb1e7a4Copy full SHA for bb1e7a4
src/components/layer.js
@@ -212,7 +212,7 @@ module.exports.Component = registerComponent('layer', {
212
213
tick: function () {
214
if (!this.el.sceneEl.xrSession) { return; }
215
- if (!this.layer && this.el.sceneEl.is('vr-mode')) { this.initLayer(); }
+ if (!this.layer && (this.el.sceneEl.is('vr-mode') || this.el.sceneEl.is('ar-mode'))) { this.initLayer(); }
216
this.updateTransform();
217
if (this.data.src.complete && (this.pendingCubeMapUpdate || this.loadingScreen || this.visibilityChanged)) { this.loadCubeMapImages(); }
218
if (!this.needsRedraw && !this.layer.needsRedraw && !this.textureIsVideo) { return; }
0 commit comments