Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using mapped properties in primitive give an error when selecting the entity #694

Open
vincentfretin opened this issue Jul 20, 2023 · 1 comment

Comments

@vincentfretin
Copy link
Contributor

Modify the index.html example to add fog="true" like this:

<a-box id="box" position="0 2 0" height="2" color="#FFC65D" fog="true"></a-box>

When you click on the yellow box, the panels disappear and you get the following errors:

Uncaught TypeError: Cannot use 'in' operator to search for 'color' in true
    at PropertyRow.render (PropertyRow.js:141:21)
    at finishClassComponent (react-dom.development.js:19752:1)
    at updateClassComponent (react-dom.development.js:19698:1)
    at beginWork (react-dom.development.js:21611:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
    at invokeGuardedCallback (react-dom.development.js:4277:1)
    at beginWork$1 (react-dom.development.js:27451:1)
    at performUnitOfWork (react-dom.development.js:26560:1)
    at workLoopSync (react-dom.development.js:26466:1)
PropertyRow.js:141 Uncaught TypeError: Cannot use 'in' operator to search for 'density' in true
    at PropertyRow.render (PropertyRow.js:141:21)
    at finishClassComponent (react-dom.development.js:19752:1)
    at updateClassComponent (react-dom.development.js:19698:1)
    at beginWork (react-dom.development.js:21611:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
    at invokeGuardedCallback (react-dom.development.js:4277:1)
    at beginWork$1 (react-dom.development.js:27451:1)
    at performUnitOfWork (react-dom.development.js:26560:1)
    at workLoopSync (react-dom.development.js:26466:1)
...

a-box here is a primitive and fog="true" is mapped to material.fog.

This is working:

<a-box id="box" position="0 2 0" height="2" color="#FFC65D" material="fog:true"></a-box>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants