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-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-02-19 13:49:20 +01:00
|
|
|
if(!_in.renderActive) continue;
|
|
|
|
|
2022-12-16 09:18:09 +01:00
|
|
|
allReady &= _in.isUpdateReady()
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!allReady) return;
|
|
|
|
|
2023-02-28 09:43:01 +01:00
|
|
|
__nodeLeafList(getNodeList(), RENDER_QUEUE);
|
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
|
|
|
}
|