1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 01:36:03 +08:00

Merge pull request #3 from beef331/master

Fixed issue with NodeTint not working properly.
This commit is contained in:
Thor Brigsted 2017-11-26 13:43:11 +01:00 committed by GitHub
commit 7c6ada52b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ namespace XNodeEditor {
} }
public virtual Color GetTint() { public virtual Color GetTint() {
Type type = GetType(); Type type = target.GetType();
if (NodeEditorWindow.nodeTint.ContainsKey(type)) return NodeEditorWindow.nodeTint[type]; if (NodeEditorWindow.nodeTint.ContainsKey(type)) return NodeEditorWindow.nodeTint[type];
else return Color.white; else return Color.white;
} }