-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
Description:
- A-Frame Version: 1.4.0
- Platform / Device: All
- Reproducible Code Snippet or URL: https://glitch.com/edit/#!/primitive-attribute-passthrough?path=index.html%3A32%3A7
Example shows a couple of different ways of setting the color & radius of an a-sphere.
AFRAME.registerComponent('big-blue-1', {
init() {
this.el.setAttribute('geometry', 'radius: 0.75')
this.el.setAttribute('material', 'color: blue')
}
})
AFRAME.registerComponent('big-blue-2', {
init() {
this.el.setAttribute('radius', '0.75')
this.el.setAttribute('color', 'blue')
}
})
In 1.3.0 both big-blue-1 and big-blue-2 work as they should.
In 1.4.0, big-blue-1 works OK, but big-blue-2 no longer alters the sphere's color or radius.
Found when updating aframe-physics-system examples to 1.4.0. I haven't yet looked at why this is. For now I am working around by updating my examples to the alternative approach that still works.
Metadata
Metadata
Assignees
Labels
No labels