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
|
#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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user