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();
|
stopAllSounds();
|
||||||
// Hide reporters
|
// Hide reporters
|
||||||
for (var s = 0; s < runtime.sprites.length; s++) {
|
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();
|
runtime.sprites[s].hideBubble();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Reset graphic effects
|
// Reset graphic effects
|
||||||
runtime.stage.resetFilters();
|
runtime.stage.resetFilters();
|
||||||
for (var s = 0; s < runtime.sprites.length; s++) {
|
for (var s = 0; s < runtime.sprites.length; s++) {
|
||||||
runtime.sprites[s].resetFilters();
|
if (runtime.sprites[s].resetFilters) {
|
||||||
|
runtime.sprites[s].resetFilters();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue