Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
8ee7b5d784
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;