2023-02-28 09:43:01 +01:00
|
|
|
function Node_Feedback(_x, _y, _group = noone) : Node_Collection(_x, _y, _group) constructor {
|
2022-12-16 09:18:09 +01:00
|
|
|
name = "Feedback";
|
|
|
|
color = COLORS.node_blend_feedback;
|
2022-12-27 04:00:50 +01:00
|
|
|
icon = THEME.feedback;
|
2022-12-16 09:18:09 +01:00
|
|
|
|
2023-06-01 10:32:21 +02:00
|
|
|
reset_all_child = true;
|
|
|
|
|
2023-01-17 08:11:55 +01:00
|
|
|
if(!LOADING && !APPENDING && !CLONING) {
|
2022-12-16 09:18:09 +01:00
|
|
|
var input = nodeBuild("Node_Feedback_Input", -256, -32, self);
|
|
|
|
var output = nodeBuild("Node_Feedback_Output", 256, -32, self);
|
|
|
|
|
|
|
|
input.inputs[| 2].setValue(4);
|
|
|
|
output.inputs[| 0].setFrom(input.outputs[| 0]);
|
|
|
|
output.inputs[| 2].setFrom(input.outputs[| 1]);
|
|
|
|
}
|
|
|
|
|
|
|
|
static doStepBegin = function() {
|
|
|
|
if(!ANIMATOR.frame_progress) return;
|
|
|
|
setRenderStatus(false);
|
2022-12-27 04:00:50 +01:00
|
|
|
UPDATE |= RENDER_TYPE.full; //force full render
|
2022-12-16 09:18:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static getNextNodes = function() {
|
|
|
|
var allReady = true;
|
|
|
|
for(var i = custom_input_index; i < ds_list_size(inputs); i++) {
|
|
|
|
var _in = inputs[| i].from;
|
2023-06-17 14:30:49 +02:00
|
|
|
if(!_in.isRenderActive()) continue;
|
2023-02-19 13:49:20 +01:00
|
|
|
|
2023-03-26 07:13:36 +02:00
|
|
|
allReady &= _in.isRenderable()
|
2022-12-16 09:18:09 +01:00
|
|
|
}
|
|
|
|
|
2023-03-28 06:58:28 +02:00
|
|
|
if(!allReady) return [];
|
2022-12-16 09:18:09 +01:00
|
|
|
|
2023-03-28 06:58:28 +02:00
|
|
|
return __nodeLeafList(getNodeList());
|
2022-12-16 09:18:09 +01:00
|
|
|
}
|
2023-03-08 14:59:54 +01:00
|
|
|
|
|
|
|
PATCH_STATIC
|
2022-12-16 09:18:09 +01:00
|
|
|
}
|