瀏覽代碼

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 年之前
父節點
當前提交
8ee7b5d784
共有 1 個文件被更改,包括 2 次插入1 次删除
  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;