mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 07:16:49 +01:00
Disable keyframe cache
This commit is contained in:
parent
cf48f9ab9d
commit
9ac2861330
1 changed files with 8 additions and 8 deletions
|
@ -332,14 +332,14 @@ function valueAnimator(_val, _prop, _sep_axis = false) constructor {
|
||||||
static clearProcessCache = function(_val) { process_cache = {}; }
|
static clearProcessCache = function(_val) { process_cache = {}; }
|
||||||
|
|
||||||
static processType = function(_val) { #region
|
static processType = function(_val) { #region
|
||||||
if(process_cache_type != prop.type || process_cache_disp != prop.display_type) {
|
//if(process_cache_type != prop.type || process_cache_disp != prop.display_type) {
|
||||||
clearProcessCache();
|
// clearProcessCache();
|
||||||
process_cache_type = prop.type;
|
// process_cache_type = prop.type;
|
||||||
process_cache_disp = prop.display_type;
|
// process_cache_disp = prop.display_type;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if(struct_has(process_cache, _val))
|
//if(struct_has(process_cache, _val))
|
||||||
return process_cache[$ _val];
|
// return process_cache[$ _val];
|
||||||
|
|
||||||
var _res = _val;
|
var _res = _val;
|
||||||
if(!sep_axis && typeArray(prop.display_type) && is_array(_val)) {
|
if(!sep_axis && typeArray(prop.display_type) && is_array(_val)) {
|
||||||
|
@ -348,7 +348,7 @@ function valueAnimator(_val, _prop, _sep_axis = false) constructor {
|
||||||
} else
|
} else
|
||||||
_res = processValue(_val);
|
_res = processValue(_val);
|
||||||
|
|
||||||
process_cache[$ _val] = _res;
|
//process_cache[$ _val] = _res;
|
||||||
return _res;
|
return _res;
|
||||||
} #endregion
|
} #endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue