Creating, connecting nodes now won't refresh the entire graph. (I'm pretty sure there's a reason I make it do that, but we'll see.)

This commit is contained in:
Tanasart 2024-12-20 10:52:20 +07:00
parent 800c6bbf9a
commit 8eff3f78f6
4 changed files with 7 additions and 6 deletions

View file

@ -132,7 +132,7 @@ _FILE_DROPPED = false;
DEF_SURFACE_RESET(); DEF_SURFACE_RESET();
if(!PROJECT.safeMode && UPDATE_RENDER_ORDER) { if(!PROJECT.safeMode && UPDATE_RENDER_ORDER) {
ResetAllNodesRender(); // ResetAllNodesRender();
NodeTopoSort(); NodeTopoSort();
} }

View file

@ -74,7 +74,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
if(!LOCALE_DEF || TESTING) renamed = true; if(!LOCALE_DEF || TESTING) renamed = true;
}); });
RENDER_ALL_REORDER RENDER_PARTIAL_REORDER
} }
#region ---- display ---- #region ---- display ----

View file

@ -1744,7 +1744,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
PROJECT.modified = true; PROJECT.modified = true;
} }
RENDER_ALL_REORDER RENDER_PARTIAL_REORDER
if(onSetFrom != noone) onSetFrom(_valueFrom); if(onSetFrom != noone) onSetFrom(_valueFrom);
if(_valueFrom.onSetTo != noone) _valueFrom.onSetTo(self); if(_valueFrom.onSetTo != noone) _valueFrom.onSetTo(self);

View file

@ -10,9 +10,10 @@ enum RENDER_TYPE {
LIVE_UPDATE = false; LIVE_UPDATE = false;
UPDATE_RENDER_ORDER = false; UPDATE_RENDER_ORDER = false;
#macro RENDER_ALL_REORDER UPDATE_RENDER_ORDER = true; UPDATE |= RENDER_TYPE.full; #macro RENDER_ALL UPDATE |= RENDER_TYPE.full;
#macro RENDER_ALL UPDATE |= RENDER_TYPE.full; #macro RENDER_ALL_REORDER UPDATE_RENDER_ORDER = true; UPDATE |= RENDER_TYPE.full;
#macro RENDER_PARTIAL UPDATE |= RENDER_TYPE.partial; #macro RENDER_PARTIAL UPDATE |= RENDER_TYPE.partial;
#macro RENDER_PARTIAL_REORDER UPDATE_RENDER_ORDER = true; UPDATE |= RENDER_TYPE.partial;
global.getvalue_hit = 0; global.getvalue_hit = 0;
#endregion #endregion