aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

The inspector fails is inconsistent regarding copying a primitive with a modified attribute #492

Closed delapuente closed 5 years ago

delapuente commented 7 years ago

For consistency, the inspector should serialise primitives giving priority to mapped attributes.

STR:

  1. Open the example scene
  2. Select the <a-sky> tag
  3. Set the radius property to 4 (geometry component)
  4. Click on copy

Expected:

<a-sky color="#3c3c3c" radius="4"></a-sky>

Actual:

<a-sky color="#3c3c3c" geometry="radius: 4"></a-sky>
ngokevin commented 5 years ago

the ECS syntax is the true syntax, the primitive stuff is just extra/helper, so maintaining the component property syntax is consistent