From 53d5425260eb83827bedc4d5fb2dc9267d4035fc Mon Sep 17 00:00:00 2001 From: Tanasart Date: Sun, 8 Sep 2024 09:57:13 +0700 Subject: [PATCH] [Graph, Inspector] Fix node not update junction while playing. --- scripts/node_data/node_data.gml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/node_data/node_data.gml b/scripts/node_data/node_data.gml index 03dcf0799..a377a54ac 100644 --- a/scripts/node_data/node_data.gml +++ b/scripts/node_data/node_data.gml @@ -626,7 +626,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { outputs_amount = output_display_list == -1? array_length(outputs) : array_length(output_display_list); outputs_index = array_create_ext(outputs_amount, function(index) { return getOutputJunctionIndex(index); }); - } run_in(1, function() /*=>*/ { updateIO() }); + } //run_in(1, () => { updateIO() }); static setHeight = function() { @@ -898,7 +898,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { if(!is_instanceof(self, Node_Collection)) render_time = get_timer() - render_timer; - refreshNodeDisplay(); + //refreshNodeDisplay(); LOG_BLOCK_END(); } @@ -1167,13 +1167,13 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { } static refreshNodeDisplay = function() { - if(IS_PLAYING) return; - INLINE - + // print("refreshNodeDisplay"); printCallStack(); + // if(IS_PLAYING) return; updateIO(); setHeight(); getJunctionList(); - } run_in(1, function() { refreshNodeDisplay(); }); + + } run_in(1, function() /*=>*/ { refreshNodeDisplay(); }); static preDraw = function(_x, _y, _s) {