From 100ca38f3a2eee4111f528bcd6a4c425c5cdb725 Mon Sep 17 00:00:00 2001
From: Marshall Quander <marshall@quander.me>
Date: Thu, 5 Jul 2018 14:02:04 -0700
Subject: [PATCH] Fix a tiny bug

---
 src/components/gltf-model-plus.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js
index 062d403b1..61445a2bd 100644
--- a/src/components/gltf-model-plus.js
+++ b/src/components/gltf-model-plus.js
@@ -230,7 +230,7 @@ AFRAME.registerComponent("gltf-model-plus", {
   },
 
   loadTemplates() {
-    this.templates = [];
+    this.templates = {};
     this.el.querySelectorAll(":scope > template").forEach(templateEl => {
       const root = document.importNode(templateEl.firstElementChild || templateEl.content.firstElementChild, true);
       this.templates[templateEl.getAttribute("data-name")] = root;
-- 
GitLab