diff --git a/Scripts/Editor/NodeEditor.cs b/Scripts/Editor/NodeEditor.cs index 5d4e1eb..8d0f1c2 100644 --- a/Scripts/Editor/NodeEditor.cs +++ b/Scripts/Editor/NodeEditor.cs @@ -48,7 +48,7 @@ namespace XNodeEditor { } public virtual Color GetTint() { - Type type = GetType(); + Type type = target.GetType(); if (NodeEditorWindow.nodeTint.ContainsKey(type)) return NodeEditorWindow.nodeTint[type]; else return Color.white; }