reset beat anticipation time on clearBeats

This commit is contained in:
Kevin Ngo
2018-10-30 23:43:38 -07:00
parent 50ef35f3ef
commit a4c8a6df80

View File

@@ -301,7 +301,7 @@ AFRAME.registerComponent('beat-loader', {
*/
clearBeats: function () {
this.beatsTime = 0;
this.beatsTimeOffset = undefined;
this.beatsTimeOffset = this.data.beatAnticipationTime * 1000;
for (let i = 0; i < this.beatContainer.children.length; i++) {
let child = this.beatContainer.children[i];
if (child.components.beat) {