fix recache bug

This commit is contained in:
Anton Lavrenov
2019-02-23 09:40:32 -05:00
parent 1c1f2adacc
commit 472bb1cf63
3 changed files with 79 additions and 1320 deletions

View File

@@ -208,8 +208,7 @@ export abstract class Node {
*/
clearCache() {
this._cache.delete(CANVAS);
this._filterUpToDate = false;
this._clearSelfAndDescendantCache(undefined);
this._clearSelfAndDescendantCache();
return this;
}
/**
@@ -313,7 +312,7 @@ export abstract class Node {
cachedHitCanvas.isCache = true;
this._cache.delete('canvas');
// this.clearCache();
this._filterUpToDate = false;
sceneContext.save();
hitContext.save();