use non-object form to update wall speed

This commit is contained in:
Kevin Ngo
2018-10-12 04:44:45 -07:00
parent a86506e821
commit f447761e58

View File

@@ -194,9 +194,7 @@ AFRAME.registerComponent('beat-loader', {
var durationMs;
if (!el) { return; }
durationSeconds = 60 * (wallInfo._duration / this.bpm);
el.setAttribute('wall', {
speed: speed
});
el.setAttribute('wall', 'speed', speed);
el.object3D.position.set(
this.horizontalPositions[wallInfo._lineIndex],
1.30,