mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix missing variable and remove unnecessesary if
This commit is contained in:
parent
c97ce34e6e
commit
9c96c7eaf2
@ -30,14 +30,9 @@
|
|||||||
var key1 = frame.getHash();
|
var key1 = frame.getHash();
|
||||||
if (cache[key1]) {
|
if (cache[key1]) {
|
||||||
processedFrame = cache[key1];
|
processedFrame = cache[key1];
|
||||||
} else if (frame instanceof pskl.model.frame.RenderedFrame) {
|
|
||||||
// Cannot use 2nd level cache with rendered frames
|
|
||||||
var callbackFirstLvlCacheOnly = this.onProcessorComplete_.bind(this, deferred, cache, key1);
|
|
||||||
this.frameProcessor(frame, callbackFirstLvlCacheOnly);
|
|
||||||
} else {
|
} else {
|
||||||
var callback = this.onProcessorComplete_.bind(this, deferred, cache, key1);
|
var callback = this.onProcessorComplete_.bind(this, deferred, cache, key1);
|
||||||
this.frameProcessor(frame, callback);
|
this.frameProcessor(frame, callback);
|
||||||
cache[key1] = processedFrame;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (processedFrame) {
|
if (processedFrame) {
|
||||||
|
Loading…
Reference in New Issue
Block a user