mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Added window.Repaint and fixed drawnbyXNode
For Odin support branch
This commit is contained in:
parent
46cb80959a
commit
fa18c8d343
@ -34,7 +34,7 @@ namespace XNodeEditor {
|
||||
|
||||
#if ODIN_INSPECTOR
|
||||
// let xNode handle these
|
||||
string[] drawnbyXNode = { "input", "output" };
|
||||
string[] drawnbyXNode = target.Ports.Select(x => x.fieldName).ToArray();
|
||||
#endif
|
||||
|
||||
// Iterate through serialized properties and draw them like the Inspector (But with ports)
|
||||
@ -73,6 +73,7 @@ namespace XNodeEditor {
|
||||
// Call repaint so that the graph window elements respond properly to layout changes coming from Odin
|
||||
if (GUIHelper.RepaintRequested) {
|
||||
GUIHelper.ClearRepaintRequest();
|
||||
window.Repaint();
|
||||
}
|
||||
#else
|
||||
window.Repaint();
|
||||
@ -143,4 +144,4 @@ namespace XNodeEditor {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user