GrimoireGL / GrimoireJS

A WebGL framework for Web development.
https://grimoire.gl
MIT License
350 stars 24 forks source link

An exception occurs when getAttribute() from an unmounted node #494

Open moajo opened 7 years ago

moajo commented 7 years ago

when call getAttribute method of unmounted node, following error occurs,

grimoire.js:5143 Uncaught Error: attribute position value is undefined in mesh
    at Attribute.get (grimoire.js:5143)
    at AttributeManager.getAttribute (grimoire.js:6752)
    at GomlNode.getAttribute (grimoire.js:3209)
    at <anonymous>:1:3

This is due to the fact that resolution of initial values of component attributes is performed in awake message. I think this specification is not very good.