Browse Source

Audio.js - set isPlaying to false in stop() (#9072)

* Audio.js - set isPlaying to false in stop()

* Audio.js - set isPlaying to false in stop()(2nd try)
Sam Matthews 9 years ago
parent
commit
8ee7b5d784
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/audio/Audio.js

+ 2 - 1
src/audio/Audio.js

@@ -116,7 +116,8 @@ THREE.Audio.prototype = Object.assign( Object.create( THREE.Object3D.prototype )
 			return;
 
 		}
-
+		
+		this.isPlaying = false;
 		this.source.stop();
 		this.startTime = 0;