From f58af6424cbb92baa4945b399d59776ecca85907 Mon Sep 17 00:00:00 2001
From: joni <johnfshaughnessy@gmail.com>
Date: Fri, 30 Mar 2018 20:03:55 +0200
Subject: [PATCH] Give the avatar pic a custom renderOrder too

---
 src/components/in-world-hud.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/components/in-world-hud.js b/src/components/in-world-hud.js
index 9a4fb10a6..d093688b4 100644
--- a/src/components/in-world-hud.js
+++ b/src/components/in-world-hud.js
@@ -7,9 +7,11 @@ AFRAME.registerComponent("in-world-hud", {
     this.bg = this.el.querySelector(".bg");
     this.mic = this.el.querySelector(".mic");
     this.nametag = this.el.querySelector(".username");
+    this.avatar = this.el.querySelector(".avatar");
     this.nametag.object3DMap.text.material.depthTest = false;
     this.nametag.object3DMap.text.renderOrder = 1;
     this.mic.object3DMap.mesh.renderOrder = 1;
+    this.avatar.object3DMap.mesh.renderOrder = 1;
     this.data.raycaster.components.line.material.depthTest = false;
 
     const muted = this.el.sceneEl.is("muted");
-- 
GitLab