aframe-watcher icon indicating copy to clipboard operation
aframe-watcher copied to clipboard

New entities created in the inspector are not saved on Linux

Open gearcoded opened this issue 5 years ago • 5 comments

Hello, I noticed that if I create a new entity in the inspector and try to save it with the aframe-watcher, the changes are not saved. If I update an existing entity with the ID, it works correctly. Here is the video: https://ufile.io/48muzkg4 And here is a small file where I tested that: https://ufile.io/tqrbj3fc

gearcoded avatar Feb 28 '20 22:02 gearcoded

okay i just had the same problem and resolved it. it's not linux-specific. i tried on windows and linux. the clue was at the bottom of the instructions, but it's a little more nuanced than that.

Currently only handles entity updates that have defined IDs:

<a-entity id="updateMe"></a-entity>

if you don't have an id in the original .html file it won't save anything (but you can still copy-paste the HTML of course). if you create a new object in the inspector, and manually add an id in the id field in the inspector it will not save - only works on existing objects in the file. if you edit an existing object that didn't have an id field, by adding one in in the inspector, it will not save.

capnramses avatar Jul 28 '20 13:07 capnramses