toggle off trail / bad beats when not playing
This commit is contained in:
@@ -63,6 +63,10 @@ AFRAME.registerComponent('trail', {
|
||||
this.enabledTime = this.el.sceneEl.time;
|
||||
this.mesh.visible = false;
|
||||
}
|
||||
|
||||
if (oldData.enabled && !this.data.enabled) {
|
||||
this.mesh.visible = false;
|
||||
}
|
||||
},
|
||||
|
||||
tock: function (time, delta) {
|
||||
|
||||
Reference in New Issue
Block a user