mirror of
https://github.com/scratchfoundation/scratch-html5.git
synced 2024-12-01 03:16:59 -05:00
Fixed resetting filters
This commit is contained in:
parent
5cacaa8e1e
commit
2db0268305
1 changed files with 4 additions and 2 deletions
|
@ -90,14 +90,16 @@ Runtime.prototype.stopAll = function() {
|
|||
stopAllSounds();
|
||||
// Hide reporters
|
||||
for (var s = 0; s < runtime.sprites.length; s++) {
|
||||
if (typeof runtime.sprites[s].hideBubble == 'function') {
|
||||
if (runtime.sprites[s].hideBubble) {
|
||||
runtime.sprites[s].hideBubble();
|
||||
}
|
||||
}
|
||||
// Reset graphic effects
|
||||
runtime.stage.resetFilters();
|
||||
for (var s = 0; s < runtime.sprites.length; s++) {
|
||||
runtime.sprites[s].resetFilters();
|
||||
if (runtime.sprites[s].resetFilters) {
|
||||
runtime.sprites[s].resetFilters();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue