While implementing it I found a bug that prevents the compound widgets like vec3 to work properly outside of a single property component (Like position, rotation, ...).
I simplified the updateEntity function (Probably it will be a good idea to open an issue/PR on aframe to use it or modify AFRAME.utils.entity.setComponentProperty to accept null/undefined value.
I simplified the onChange callback on each widget as is not necessary anything else than the value and actually the attribute name (x,y,z,...) for compounds widgets.
I was thinking about leaving the tests for another PR as I'm not that familiar with this test system and as this is broken right now so we could get it working and then focus on testing side?
While implementing it I found a bug that prevents the compound widgets like
vec3
to work properly outside of a single property component (Likeposition
,rotation
, ...).I simplified the
updateEntity
function (Probably it will be a good idea to open an issue/PR on aframe to use it or modifyAFRAME.utils.entity.setComponentProperty
to acceptnull/undefined
value.I simplified the
onChange
callback on each widget as is not necessary anything else than thevalue
and actually theattribute name
(x,y,z,...) for compounds widgets.I was thinking about leaving the tests for another PR as I'm not that familiar with this test system and as this is broken right now so we could get it working and then focus on testing side?