[Graph, Inspector] Fix node not update junction while playing.

This commit is contained in:
Tanasart 2024-09-08 09:57:13 +07:00
parent 4468f26107
commit 53d5425260

View File

@ -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_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); }); outputs_index = array_create_ext(outputs_amount, function(index) { return getOutputJunctionIndex(index); });
} run_in(1, function() /*=>*/ { updateIO() }); } //run_in(1, () => { updateIO() });
static setHeight = function() { static setHeight = function() {
@ -898,7 +898,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
if(!is_instanceof(self, Node_Collection)) if(!is_instanceof(self, Node_Collection))
render_time = get_timer() - render_timer; render_time = get_timer() - render_timer;
refreshNodeDisplay(); //refreshNodeDisplay();
LOG_BLOCK_END(); LOG_BLOCK_END();
} }
@ -1167,13 +1167,13 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
} }
static refreshNodeDisplay = function() { static refreshNodeDisplay = function() {
if(IS_PLAYING) return; // print("refreshNodeDisplay"); printCallStack();
INLINE // if(IS_PLAYING) return;
updateIO(); updateIO();
setHeight(); setHeight();
getJunctionList(); getJunctionList();
} run_in(1, function() { refreshNodeDisplay(); });
} run_in(1, function() /*=>*/ { refreshNodeDisplay(); });
static preDraw = function(_x, _y, _s) { static preDraw = function(_x, _y, _s) {