Skip to content
Snippets Groups Projects
Commit cdba3564 authored by netpro2k's avatar netpro2k
Browse files

Fix inflating of GLTFs with unnamed nodes

parent ea383606
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ const inflateEntities = function(classPrefix, parentEl, node) {
const el = document.createElement("a-entity");
// Remove invalid CSS class name characters.
const className = node.name.replace(/[^\w-]/g, "");
const className = (node.name || node.uuid).replace(/[^\w-]/g, "");
el.classList.add(classPrefix + className);
parentEl.appendChild(el);
......
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