mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -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"
|
* Called when the project receives a "stop all"
|
||||||
* Stop all sounds
|
* Stop all sounds and clear graphic effects.
|
||||||
*/
|
*/
|
||||||
RenderedTarget.prototype.onStopAll = function () {
|
RenderedTarget.prototype.onStopAll = function () {
|
||||||
|
this.clearEffects();
|
||||||
if (this.audioPlayer) {
|
if (this.audioPlayer) {
|
||||||
this.audioPlayer.stopAllSounds();
|
this.audioPlayer.stopAllSounds();
|
||||||
this.audioPlayer.clearEffects();
|
this.audioPlayer.clearEffects();
|
||||||
|
|
Loading…
Reference in a new issue