mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-02-05 17:55:20 +01:00
__nextNodesToLoop
This commit is contained in:
parent
41aa0fb7e9
commit
8877c8db59
5 changed files with 13 additions and 12 deletions
Binary file not shown.
|
@ -43,7 +43,7 @@
|
||||||
LATEST_VERSION = 1_18_00_0;
|
LATEST_VERSION = 1_18_00_0;
|
||||||
VERSION = 1_18_06_2;
|
VERSION = 1_18_06_2;
|
||||||
SAVE_VERSION = 1_18_05_0;
|
SAVE_VERSION = 1_18_05_0;
|
||||||
VERSION_STRING = MAC? "1.18.003m" : "1.18.7.1";
|
VERSION_STRING = MAC? "1.18.003m" : "1.18.7.1.001";
|
||||||
BUILD_NUMBER = 118070;
|
BUILD_NUMBER = 118070;
|
||||||
PREF_VERSION = 1_17_1;
|
PREF_VERSION = 1_17_1;
|
||||||
|
|
||||||
|
|
|
@ -1306,7 +1306,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
||||||
|
|
||||||
for( var j = 0, m = array_length(_ot.value_to); j < m; j++ ) {
|
for( var j = 0, m = array_length(_ot.value_to); j < m; j++ ) {
|
||||||
var _jto = _ot.value_to[j];
|
var _jto = _ot.value_to[j];
|
||||||
if(_jto.value_from != _jto || !_jto.node.active) continue;
|
if(_jto.value_from != _ot || !_jto.node.active) continue;
|
||||||
array_push(nodes, _jto.node);
|
array_push(nodes, _jto.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1316,18 +1316,18 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
||||||
|
|
||||||
for( var j = 0, m = array_length(_ot.value_to); j < m; j++ ) {
|
for( var j = 0, m = array_length(_ot.value_to); j < m; j++ ) {
|
||||||
var _jto = _ot.value_to[j];
|
var _jto = _ot.value_to[j];
|
||||||
if(_jto.value_from != _jto || !_jto.node.active) continue;
|
if(_jto.value_from != _ot || !_jto.node.active) continue;
|
||||||
array_push(nodes, _jto.node);
|
array_push(nodes, _jto.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for( var i = 0, n = array_length(inputs); i < n; i++ ) {
|
for( var i = 0, n = array_length(inputs); i < n; i++ ) {
|
||||||
var _in = inputs[i];
|
var _in = inputs[i];
|
||||||
if(_in.bypass_junc == noone) continue;
|
if(_in.bypass_junc == noone || !_in.bypass_junc.visible) continue;
|
||||||
|
|
||||||
for( var j = 0, m = array_length(_in.value_to); j < m; j++ ) {
|
for( var j = 0, m = array_length(_in.value_to); j < m; j++ ) {
|
||||||
var _jto = _in.value_to[j];
|
var _jto = _in.value_to[j];
|
||||||
if(_jto.value_from != _jto || !_jto.node.active) continue;
|
if(_jto.value_from != _ot || !_jto.node.active) continue;
|
||||||
array_push(nodes, _jto.node);
|
array_push(nodes, _jto.node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -589,16 +589,16 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
|
||||||
if(array_length(points) < 2) continue;
|
if(array_length(points) < 2) continue;
|
||||||
random_set_seed(_sed + i);
|
random_set_seed(_sed + i);
|
||||||
|
|
||||||
if(_useTex && _scaleTex) shader_set_2("scale", [ _texSca[0] * _len, _texSca[1] ]);
|
|
||||||
if(_useTex) draw_primitive_begin_texture(pr_trianglestrip, tex);
|
|
||||||
else draw_primitive_begin(pr_trianglestrip);
|
|
||||||
|
|
||||||
var _ldata = line_data[i];
|
var _ldata = line_data[i];
|
||||||
var _len = _ldata.length;
|
var _len = _ldata.length;
|
||||||
var _caps = [];
|
var _caps = [];
|
||||||
var pxs = [];
|
var pxs = [];
|
||||||
var dat = array_safe_get_fast(_pathData, i, noone);
|
var dat = array_safe_get_fast(_pathData, i, noone);
|
||||||
|
|
||||||
|
if(_useTex && _scaleTex) shader_set_2("scale", [ _texSca[0] * _len, _texSca[1] ]);
|
||||||
|
if(_useTex) draw_primitive_begin_texture(pr_trianglestrip, tex);
|
||||||
|
else draw_primitive_begin(pr_trianglestrip);
|
||||||
|
|
||||||
var _col_base = dat == noone? _colb.eval(random(1)) : dat.color;
|
var _col_base = dat == noone? _colb.eval(random(1)) : dat.color;
|
||||||
_ow = 1;
|
_ow = 1;
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,8 @@ function __sortNode(_arr, _node, _sorted) {
|
||||||
if(struct_has(_sorted, _node.node_id)) return;
|
if(struct_has(_sorted, _node.node_id)) return;
|
||||||
array_push(_arr, _node);
|
array_push(_arr, _node);
|
||||||
_sorted[$ _node.node_id] = 1;
|
_sorted[$ _node.node_id] = 1;
|
||||||
_node.__nextNodes = noone;
|
_node.__nextNodes = noone;
|
||||||
|
_node.__nextNodesToLoop = noone;
|
||||||
|
|
||||||
// print($" > Adding > {_node.name} | {_arr}");
|
// print($" > Adding > {_node.name} | {_arr}");
|
||||||
}
|
}
|
||||||
|
@ -195,7 +196,7 @@ function Render(partial = false, runAction = false) {
|
||||||
RENDER_QUEUE.clear();
|
RENDER_QUEUE.clear();
|
||||||
array_foreach(PROJECT.nodeTopo, function(n) /*=>*/ {
|
array_foreach(PROJECT.nodeTopo, function(n) /*=>*/ {
|
||||||
n.passiveDynamic = false;
|
n.passiveDynamic = false;
|
||||||
n.__nextNodes = noone;
|
// n.__nextNodes = noone;
|
||||||
n.render_time = 0;
|
n.render_time = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue