mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-26 12:58:49 +01:00
remove strict mode
This commit is contained in:
parent
3a3f39a170
commit
4827d3fb18
8 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
// 2024-04-23 16:53:10
|
// 2024-04-23 16:59:16
|
||||||
enum KEY_TYPE { normal, adder }
|
enum KEY_TYPE { normal, adder }
|
||||||
enum CURVE_TYPE { linear, bezier, cut }
|
enum CURVE_TYPE { linear, bezier, cut }
|
||||||
enum DRIVER_TYPE { none, linear, wiggle, sine }
|
enum DRIVER_TYPE { none, linear, wiggle, sine }
|
||||||
|
@ -428,7 +428,7 @@ function valueAnimator(_val, _prop, _sep_axis = false) constructor {
|
||||||
static processType = function(_val) { #region
|
static processType = function(_val) { #region
|
||||||
INLINE
|
INLINE
|
||||||
|
|
||||||
if(PROJECT.attributes.strict) return _val;
|
if(PROJECT.attributes.strict) return processValue(_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)) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// 2024-04-23 16:51:49
|
// 2024-04-23 16:58:54
|
||||||
enum KEY_TYPE { normal, adder }
|
enum KEY_TYPE { normal, adder }
|
||||||
enum CURVE_TYPE { linear, bezier, cut }
|
enum CURVE_TYPE { linear, bezier, cut }
|
||||||
enum DRIVER_TYPE { none, linear, wiggle, sine }
|
enum DRIVER_TYPE { none, linear, wiggle, sine }
|
||||||
|
@ -428,7 +428,7 @@ function valueAnimator(_val, _prop, _sep_axis = false) constructor {
|
||||||
static processType = function(_val) { #region
|
static processType = function(_val) { #region
|
||||||
INLINE
|
INLINE
|
||||||
|
|
||||||
if(PROJECT.attributes.strict) return _val;
|
if(PROJECT.attributes.strict) return processValue(_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)) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// 2024-04-23 16:49:02
|
// 2024-04-23 17:16:51
|
||||||
#region ---- global names ----
|
#region ---- global names ----
|
||||||
global.junctionEndName = [ "Hold", "Loop", "Ping pong", "Wrap" ];
|
global.junctionEndName = [ "Hold", "Loop", "Ping pong", "Wrap" ];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// 2024-04-23 16:40:38
|
// 2024-04-23 17:05:58
|
||||||
#region ---- global names ----
|
#region ---- global names ----
|
||||||
global.junctionEndName = [ "Hold", "Loop", "Ping pong", "Wrap" ];
|
global.junctionEndName = [ "Hold", "Loop", "Ping pong", "Wrap" ];
|
||||||
|
|
||||||
|
@ -1745,7 +1745,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
|
||||||
}
|
}
|
||||||
} #endregion
|
} #endregion
|
||||||
|
|
||||||
if(PROJECT.strict) return val;
|
if(PROJECT.attributes.strict) return val;
|
||||||
|
|
||||||
val = arrayBalance(val);
|
val = arrayBalance(val);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// 2024-04-23 16:49:39
|
// 2024-04-23 17:06:07
|
||||||
#region global
|
#region global
|
||||||
globalvar PROJECTS, PROJECT;
|
globalvar PROJECTS, PROJECT;
|
||||||
PROJECT = noone;
|
PROJECT = noone;
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
[ "Strict", "strict", new checkBox(function() { attributes.strict = !attributes.strict; RENDER_ALL return true; }), function() {} ],
|
//[ "Strict", "strict", new checkBox(function() { attributes.strict = !attributes.strict; RENDER_ALL return true; }), function() {} ],
|
||||||
];
|
];
|
||||||
|
|
||||||
static setPalette = function(pal = noone) {
|
static setPalette = function(pal = noone) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// 2024-04-23 16:49:37
|
// 2024-04-23 17:06:05
|
||||||
#region global
|
#region global
|
||||||
globalvar PROJECTS, PROJECT;
|
globalvar PROJECTS, PROJECT;
|
||||||
PROJECT = noone;
|
PROJECT = noone;
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
[ "Strict", "strict", new checkBox(function() { attributes.strict = !attributes.strict; RENDER_ALL return true; }), function() {} ],
|
//[ "Strict", "strict", new checkBox(function() { attributes.strict = !attributes.strict; RENDER_ALL return true; }), function() {} ],
|
||||||
];
|
];
|
||||||
|
|
||||||
static setPalette = function(pal = noone) {
|
static setPalette = function(pal = noone) {
|
||||||
|
|
|
@ -427,7 +427,7 @@ function valueAnimator(_val, _prop, _sep_axis = false) constructor {
|
||||||
static processType = function(_val) { #region
|
static processType = function(_val) { #region
|
||||||
INLINE
|
INLINE
|
||||||
|
|
||||||
if(PROJECT.attributes.strict) return _val;
|
if(PROJECT.attributes.strict) return processValue(_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)) {
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
[ "Strict", "strict", new checkBox(function() { attributes.strict = !attributes.strict; RENDER_ALL return true; }), function() {} ],
|
//[ "Strict", "strict", new checkBox(function() { attributes.strict = !attributes.strict; RENDER_ALL return true; }), function() {} ],
|
||||||
];
|
];
|
||||||
|
|
||||||
static setPalette = function(pal = noone) {
|
static setPalette = function(pal = noone) {
|
||||||
|
|
Loading…
Reference in a new issue