repo: janusweb action: commit revision: path_from: revision_from: 7aceaed6433fa82b8838a0270972653311ec7c3b: path_to: revision_to:
commit 7aceaed6433fa82b8838a0270972653311ec7c3b Author: spyduckDate: Wed Apr 11 12:36:21 2018 -0400 fix syncing issue object.sync = true now resets each frame, otherwise future syncs get ignored diff --git a/scripts/sound.js b/scripts/sound.js
--- a/scripts/sound.js
+++ b/scripts/sound.js
@@ -150,7 +150,7 @@ elation.require(['janusweb.janusbase'], function() {
this.checkBounds = (function() {
var worldpos = new THREE.Vector3();
return function() {
- if (this.bounds && this.audio && !this.playing && !this.playStarted) {
+ if (this.bounds && this.audio && !this.playing) {
var listener = this.engine.systems.sound.getRealListener();
if (listener) {
worldpos.set(0,0,0).applyMatrix4(listener.matrixWorld);
@@ -184,4 +184,4 @@ elation.require(['janusweb.janusbase'], function() {
return this._proxyobject;
}
}, elation.engine.things.janusbase);
-});
+});
\ No newline at end of file
-----END OF PAGE-----