From 704730e59d2eb10bb55e36987a2214c57b9672fc Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Sun, 10 Jun 2018 21:17:17 +0200 Subject: [PATCH] Minor corrections Instance ports now show value for tooltip Edited comment --- Scripts/Editor/NodeEditorGUI.cs | 2 +- Scripts/Node.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs index ee339b9..70f7d54 100644 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -446,7 +446,7 @@ namespace XNodeEditor { Type type = hoveredPort.ValueType; GUIContent content = new GUIContent(); content.text = type.PrettyName(); - if (hoveredPort.IsStatic && hoveredPort.IsOutput) { + if (hoveredPort.IsOutput) { object obj = hoveredPort.node.GetValue(hoveredPort); content.text += " = " + (obj != null ? obj.ToString() : "null"); } diff --git a/Scripts/Node.cs b/Scripts/Node.cs index 7e9a4ac..111ee18 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -57,7 +57,7 @@ namespace XNode { [SerializeField] public NodeGraph graph; /// Position on the [SerializeField] public Vector2 position; - /// Input s. It is recommended not to modify these at hand. Instead, see + /// It is recommended not to modify these at hand. Instead, see and [SerializeField] private NodePortDictionary ports = new NodePortDictionary(); protected void OnEnable() {