diff --git a/src/components/audio-feedback.js b/src/components/audio-feedback.js index 6e6ea781364391ccc9361402dd6e168e3eb5dbfe..d4bdf5792e79cc1eb3191a0d042f59e89308956d 100644 --- a/src/components/audio-feedback.js +++ b/src/components/audio-feedback.js @@ -77,6 +77,8 @@ AFRAME.registerComponent("scale-audio-feedback", { }, onAudioFrequencyChange(e) { + // TODO: come up with a cleaner way to handle this. + // bone's are "hidden" by scaling them with bone-visibility, without this we would overwrite that. if (!this.el.object3D.visible) return; const { minScale, maxScale } = this.data; this.el.object3D.scale.setScalar(minScale + (maxScale - minScale) * e.detail.volume / 255);