xNode
xNode copied to clipboard
when delete a node which dynamicPortList is ture , Ctrl + Z has error
I have fixed this problem
It is caused by not clearing “reorderableListCache ” and “editors””when deleting the node
@Siccity
How to solve this problem?(⑉・̆-・̆⑉)
How to solve this problem?(⑉・̆-・̆⑉)
When remove node, you need clear the cache of customeditor.
1. private static readonly Dictionary<UnityEngine.Object, Dictionary<string, ReorderableList>> reorderableListCache = new Dictionary<UnityEngine.Object, Dictionary<string, ReorderableList>>();
2. private static Dictionary<K, T> editors = new Dictionary<K, T>();