1
0
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:
Thor Brigsted 2019-08-06 22:48:20 +02:00 committed by GitHub
parent 46cb80959a
commit fa18c8d343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ namespace XNodeEditor {
#if ODIN_INSPECTOR #if ODIN_INSPECTOR
// let xNode handle these // let xNode handle these
string[] drawnbyXNode = { "input", "output" }; string[] drawnbyXNode = target.Ports.Select(x => x.fieldName).ToArray();
#endif #endif
// Iterate through serialized properties and draw them like the Inspector (But with ports) // 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 // Call repaint so that the graph window elements respond properly to layout changes coming from Odin
if (GUIHelper.RepaintRequested) { if (GUIHelper.RepaintRequested) {
GUIHelper.ClearRepaintRequest(); GUIHelper.ClearRepaintRequest();
window.Repaint();
} }
#else #else
window.Repaint(); window.Repaint();