diff --git a/README.md b/README.md index f926019..c7288c8 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,19 @@ ```html - - - - - - - + + + + + + + ``` [Click for demo!](https://poetic-aframe.glitch.me/) +[Try out the scene editor!](https://poetic-aframe.glitch.me/editor.html) + ## Documentation - [a-locomotion.js](https://github.com/poeticAndroid/poetic-aframe/blob/master/components/a-locomotion.md) diff --git a/components/a-editor.js b/components/a-editor.js index cd77b31..80460d8 100644 --- a/components/a-editor.js +++ b/components/a-editor.js @@ -141,6 +141,8 @@ m.src.setAttribute("scale", str) else m.src.removeAttribute("scale") + if (!m.src.getAttribute("class")) + m.src.removeAttribute("class") } // this._src.flushToDOM(true) localStorage.setItem("#world", this._src.outerHTML.replace(/=""/g, "").trim()) diff --git a/editor.html b/editor.html index 107480a..00ac8a0 100644 --- a/editor.html +++ b/editor.html @@ -55,7 +55,10 @@