Skip to content
Snippets Groups Projects
Commit 48543ee5 authored by Brian Peiris's avatar Brian Peiris
Browse files

Fix nav mesh teleportation

parent 68163cb6
No related branches found
No related tags found
No related merge requests found
...@@ -68,4 +68,7 @@ AFRAME.GLTFModelPlus.registerComponent("nav-mesh", "nav-mesh", (el, _componentNa ...@@ -68,4 +68,7 @@ AFRAME.GLTFModelPlus.registerComponent("nav-mesh", "nav-mesh", (el, _componentNa
nav.loadMesh(node, zone); nav.loadMesh(node, zone);
} }
}); });
// There isn't actually an a-frame nav-mesh component, but we want to tag this el as a nav-mesh since
// nav-mesh-helper will query for it later.
el.setAttribute("nav-mesh");
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment