1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-02-06 07:14:56 +08:00

Merge branch 'master' into examples

This commit is contained in:
Thor Brigsted 2019-09-25 16:40:05 +02:00
commit 31c307190c
2 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,6 @@ namespace XNodeEditor {
// Iterate through serialized properties and draw them like the Inspector (But with ports)
SerializedProperty iterator = serializedObject.GetIterator();
bool enterChildren = true;
EditorGUIUtility.labelWidth = 84;
while (iterator.NextVisible(enterChildren)) {
enterChildren = false;
if (excludes.Contains(iterator.name)) continue;

View File

@ -305,6 +305,9 @@ namespace XNodeEditor {
NodeEditor.portPositions.Clear();
// Set default label width. This is potentially overridden in OnBodyGUI
EditorGUIUtility.labelWidth = 84;
//Get node position
Vector2 nodePos = GridToWindowPositionNoClipped(node.position);