1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00

Fixed automatic caching and drawing noodles when intentionally hiding ports

This commit is contained in:
Thor Brigsted 2018-06-14 22:56:14 +02:00
parent 704730e59d
commit 9c6fb74064

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
@ -329,6 +330,10 @@ namespace XNodeEditor {
}
} else if (culledNodes.Contains(node)) continue;
if (e.type == EventType.Repaint) {
_portConnectionPoints = _portConnectionPoints.Where(x => x.Key.node != node).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
}
NodeEditor.portPositions = new Dictionary<XNode.NodePort, Vector2>();
//Get node position