mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
Fixed automatic caching and drawing noodles when intentionally hiding ports
This commit is contained in:
parent
704730e59d
commit
9c6fb74064
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -329,6 +330,10 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
} else if (culledNodes.Contains(node)) continue;
|
} 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>();
|
NodeEditor.portPositions = new Dictionary<XNode.NodePort, Vector2>();
|
||||||
|
|
||||||
//Get node position
|
//Get node position
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user