mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 14:06:23 +01:00
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:
parent
800c6bbf9a
commit
8eff3f78f6
4 changed files with 7 additions and 6 deletions
|
@ -132,7 +132,7 @@ _FILE_DROPPED = false;
|
|||
DEF_SURFACE_RESET();
|
||||
|
||||
if(!PROJECT.safeMode && UPDATE_RENDER_ORDER) {
|
||||
ResetAllNodesRender();
|
||||
// ResetAllNodesRender();
|
||||
NodeTopoSort();
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
|||
if(!LOCALE_DEF || TESTING) renamed = true;
|
||||
});
|
||||
|
||||
RENDER_ALL_REORDER
|
||||
RENDER_PARTIAL_REORDER
|
||||
}
|
||||
|
||||
#region ---- display ----
|
||||
|
|
|
@ -1744,7 +1744,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
|
|||
PROJECT.modified = true;
|
||||
}
|
||||
|
||||
RENDER_ALL_REORDER
|
||||
RENDER_PARTIAL_REORDER
|
||||
|
||||
if(onSetFrom != noone) onSetFrom(_valueFrom);
|
||||
if(_valueFrom.onSetTo != noone) _valueFrom.onSetTo(self);
|
||||
|
|
|
@ -10,9 +10,10 @@ enum RENDER_TYPE {
|
|||
LIVE_UPDATE = 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_PARTIAL UPDATE |= RENDER_TYPE.partial;
|
||||
#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_REORDER UPDATE_RENDER_ORDER = true; UPDATE |= RENDER_TYPE.partial;
|
||||
|
||||
global.getvalue_hit = 0;
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue