@@ -17,8 +17,7 @@ AFRAME.registerComponent('active-color', {
|
||||
var el = this.el;
|
||||
|
||||
if (this.data.active) {
|
||||
el.setAttribute('material', 'color', this.data.color);
|
||||
el.setAttribute('material', 'opacity', 1);
|
||||
el.setAttribute('material', {'color': this.data.color, 'opacity': 1});
|
||||
} else {
|
||||
el.setAttribute('material', 'color', this.defaultColor);
|
||||
if (el.components.animation__mouseleave) {
|
||||
|
||||
Reference in New Issue
Block a user