This commit is contained in:
Tanasart 2024-04-26 19:38:24 +07:00
parent 3cfbd33d62
commit 65af445712
8 changed files with 19 additions and 25 deletions

View file

@ -1,4 +1,4 @@
// 2024-04-26 18:21:19 // 2024-04-26 18:23:00
function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
name = "Feedback"; name = "Feedback";
color = COLORS.node_blend_feedback; color = COLORS.node_blend_feedback;
@ -75,9 +75,7 @@ function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) con
static pointIn = function(_x, _y, _mx, _my, _s) { return false; } static pointIn = function(_x, _y, _mx, _my, _s) { return false; }
static postDeserialize = function() { #region static postDeserialize = function() { scanJunc(); }
scanJunc();
} #endregion
static onDestroy = function() { #region static onDestroy = function() { #region
if(junc_in) junc_in.value_from_loop = noone; if(junc_in) junc_in.value_from_loop = noone;

View file

@ -1,4 +1,4 @@
// 2024-04-26 18:21:04 // 2024-04-26 18:22:58
function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
name = "Feedback"; name = "Feedback";
color = COLORS.node_blend_feedback; color = COLORS.node_blend_feedback;
@ -75,9 +75,7 @@ function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) con
static pointIn = function(_x, _y, _mx, _my, _s) { return false; } static pointIn = function(_x, _y, _mx, _my, _s) { return false; }
static postDeserialize = function() { #region static postDeserialize = function() { scanJunc(); }
scanJunc();
} #endregion
static onDestroy = function() { #region static onDestroy = function() { #region
if(junc_in) junc_in.value_from_loop = noone; if(junc_in) junc_in.value_from_loop = noone;

View file

@ -1,4 +1,4 @@
// 2024-04-26 14:34:25 // 2024-04-26 18:48:54
function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
name = "Line"; name = "Line";
@ -329,7 +329,7 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
if(_total <= 0) break; if(_total <= 0) break;
if(_prog_next == _prog_curr && _segIndexPrev == _segIndex) { print("Terminate line not moving"); break; } if(_prog_next == _prog_curr && _segIndexPrev == _segIndex) { /*print("Terminate line not moving");*/ break; }
else if(_prog_next > _prog_curr) { else if(_prog_next > _prog_curr) {
_prog_total += _prog_next - _prog_curr; _prog_total += _prog_next - _prog_curr;
_total -= _prog_next - _prog_curr; _total -= _prog_next - _prog_curr;
@ -340,10 +340,10 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
_ox = _nx; _ox = _nx;
_oy = _ny; _oy = _ny;
if(_total_prev == _total && _segIndexPrev == _segIndex && ++_freeze > 16) { print("Terminate line not moving"); break; } if(_total_prev == _total && _segIndexPrev == _segIndex && ++_freeze > 16) { /*print("Terminate line not moving");*/ break; }
_total_prev = _total; _total_prev = _total;
if(_segIndex >= _segLengthAmo) { print("Terminate line finish last segment"); break; } if(_segIndex >= _segLengthAmo) { /*print("Terminate line finish last segment");*/ break; }
} }
array_resize(points, pointAmo); array_resize(points, pointAmo);

View file

@ -1,4 +1,4 @@
// 2024-04-26 14:33:39 // 2024-04-26 18:48:52
function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
name = "Line"; name = "Line";
@ -262,7 +262,7 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
} }
} }
print($"===== {_prog_curr} / {_segLength} : {_segIndex} - {_pathLength} ====="); // print($"===== {_prog_curr} / {_segLength} : {_segIndex} - {_pathLength} =====");
while(true) { while(true) {
wght = 1; wght = 1;
@ -329,7 +329,7 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
if(_total <= 0) break; if(_total <= 0) break;
if(_prog_next == _prog_curr && _segIndexPrev == _segIndex) { print("Terminate line not moving"); break; } if(_prog_next == _prog_curr && _segIndexPrev == _segIndex) { /*print("Terminate line not moving");*/ break; }
else if(_prog_next > _prog_curr) { else if(_prog_next > _prog_curr) {
_prog_total += _prog_next - _prog_curr; _prog_total += _prog_next - _prog_curr;
_total -= _prog_next - _prog_curr; _total -= _prog_next - _prog_curr;
@ -340,10 +340,10 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
_ox = _nx; _ox = _nx;
_oy = _ny; _oy = _ny;
if(_total_prev == _total && _segIndexPrev == _segIndex && ++_freeze > 16) { print("Terminate line not moving"); break; } if(_total_prev == _total && _segIndexPrev == _segIndex && ++_freeze > 16) { /*print("Terminate line not moving");*/ break; }
_total_prev = _total; _total_prev = _total;
if(_segIndex >= _segLengthAmo) { print("Terminate line finish last segment"); break; } if(_segIndex >= _segLengthAmo) { /*print("Terminate line finish last segment");*/ break; }
} }
array_resize(points, pointAmo); array_resize(points, pointAmo);

View file

@ -1,4 +1,4 @@
// 2024-04-26 12:17:59 // 2024-04-26 19:16:18
#region preference #region preference
globalvar PREFERENCES, PREFERENCES_DEF, HOTKEYS_DATA; globalvar PREFERENCES, PREFERENCES_DEF, HOTKEYS_DATA;
PREFERENCES = {}; PREFERENCES = {};

View file

@ -1,4 +1,4 @@
// 2024-04-26 10:05:24 // 2024-04-26 19:16:04
#region preference #region preference
globalvar PREFERENCES, PREFERENCES_DEF, HOTKEYS_DATA; globalvar PREFERENCES, PREFERENCES_DEF, HOTKEYS_DATA;
PREFERENCES = {}; PREFERENCES = {};

View file

@ -74,9 +74,7 @@ function Node_Feedback_Inline(_x, _y, _group = noone) : Node(_x, _y, _group) con
static pointIn = function(_x, _y, _mx, _my, _s) { return false; } static pointIn = function(_x, _y, _mx, _my, _s) { return false; }
static postDeserialize = function() { #region static postDeserialize = function() { scanJunc(); }
scanJunc();
} #endregion
static onDestroy = function() { #region static onDestroy = function() { #region
if(junc_in) junc_in.value_from_loop = noone; if(junc_in) junc_in.value_from_loop = noone;

View file

@ -328,7 +328,7 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
if(_total <= 0) break; if(_total <= 0) break;
if(_prog_next == _prog_curr && _segIndexPrev == _segIndex) { print("Terminate line not moving"); break; } if(_prog_next == _prog_curr && _segIndexPrev == _segIndex) { /*print("Terminate line not moving");*/ break; }
else if(_prog_next > _prog_curr) { else if(_prog_next > _prog_curr) {
_prog_total += _prog_next - _prog_curr; _prog_total += _prog_next - _prog_curr;
_total -= _prog_next - _prog_curr; _total -= _prog_next - _prog_curr;
@ -339,10 +339,10 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
_ox = _nx; _ox = _nx;
_oy = _ny; _oy = _ny;
if(_total_prev == _total && _segIndexPrev == _segIndex && ++_freeze > 16) { print("Terminate line not moving"); break; } if(_total_prev == _total && _segIndexPrev == _segIndex && ++_freeze > 16) { /*print("Terminate line not moving");*/ break; }
_total_prev = _total; _total_prev = _total;
if(_segIndex >= _segLengthAmo) { print("Terminate line finish last segment"); break; } if(_segIndex >= _segLengthAmo) { /*print("Terminate line finish last segment");*/ break; }
} }
array_resize(points, pointAmo); array_resize(points, pointAmo);