mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
delete clone should not stop sound (#1269)
This commit is contained in:
parent
0dffc65ce9
commit
236f914f55
1 changed files with 1 additions and 4 deletions
|
@ -1044,7 +1044,7 @@ class RenderedTarget extends Target {
|
|||
onStopAll () {
|
||||
this.clearEffects();
|
||||
if (this.sprite.soundBank) {
|
||||
this.sprite.soundBank.stopAllSounds(this);
|
||||
this.sprite.soundBank.stopAllSounds();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1130,9 +1130,6 @@ class RenderedTarget extends Target {
|
|||
dispose () {
|
||||
this.runtime.changeCloneCounter(-1);
|
||||
this.runtime.stopForTarget(this);
|
||||
if (this.sprite.soundBank) {
|
||||
this.sprite.soundBank.stopAllSounds(this);
|
||||
}
|
||||
this.sprite.removeClone(this);
|
||||
if (this.renderer && this.drawableID !== null) {
|
||||
this.renderer.destroyDrawable(this.drawableID, this.isStage ?
|
||||
|
|
Loading…
Reference in a new issue