mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Clear gfx on stop all
This commit is contained in:
parent
bf2303f6de
commit
5b82096670
1 changed files with 2 additions and 1 deletions
|
@ -706,9 +706,10 @@ RenderedTarget.prototype.onGreenFlag = function () {
|
|||
|
||||
/**
|
||||
* Called when the project receives a "stop all"
|
||||
* Stop all sounds
|
||||
* Stop all sounds and clear graphic effects.
|
||||
*/
|
||||
RenderedTarget.prototype.onStopAll = function () {
|
||||
this.clearEffects();
|
||||
if (this.audioPlayer) {
|
||||
this.audioPlayer.stopAllSounds();
|
||||
this.audioPlayer.clearEffects();
|
||||
|
|
Loading…
Reference in a new issue