mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-04 14:24:54 +08:00
clean whitespace
This commit is contained in:
parent
aa58c0b1ff
commit
6684d8336c
@ -36,7 +36,7 @@ namespace XNode {
|
|||||||
|
|
||||||
Dictionary<string, NodePort> staticPorts;
|
Dictionary<string, NodePort> staticPorts;
|
||||||
if (!portDataCache.TryGetValue(nodeType, out staticPorts)) {
|
if (!portDataCache.TryGetValue(nodeType, out staticPorts)) {
|
||||||
staticPorts = new Dictionary<string, NodePort>();
|
staticPorts = new Dictionary<string, NodePort>();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup port dict - Remove nonexisting static ports - update static port types
|
// Cleanup port dict - Remove nonexisting static ports - update static port types
|
||||||
@ -69,6 +69,7 @@ namespace XNode {
|
|||||||
dynamicListPorts.Add(port);
|
dynamicListPorts.Add(port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add missing ports
|
// Add missing ports
|
||||||
foreach (NodePort staticPort in staticPorts.Values) {
|
foreach (NodePort staticPort in staticPorts.Values) {
|
||||||
if (!ports.ContainsKey(staticPort.fieldName)) {
|
if (!ports.ContainsKey(staticPort.fieldName)) {
|
||||||
@ -206,8 +207,8 @@ namespace XNode {
|
|||||||
if (inputAttrib != null && outputAttrib != null) Debug.LogError("Field " + fieldInfo[i].Name + " of type " + nodeType.FullName + " cannot be both input and output.");
|
if (inputAttrib != null && outputAttrib != null) Debug.LogError("Field " + fieldInfo[i].Name + " of type " + nodeType.FullName + " cannot be both input and output.");
|
||||||
else {
|
else {
|
||||||
if (!portDataCache.ContainsKey(nodeType)) portDataCache.Add(nodeType, new Dictionary<string, NodePort>());
|
if (!portDataCache.ContainsKey(nodeType)) portDataCache.Add(nodeType, new Dictionary<string, NodePort>());
|
||||||
NodePort port = new NodePort(fieldInfo[i]);
|
NodePort port = new NodePort(fieldInfo[i]);
|
||||||
portDataCache[nodeType].Add(port.fieldName, port);
|
portDataCache[nodeType].Add(port.fieldName, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (formerlySerializedAsAttribute != null) {
|
if (formerlySerializedAsAttribute != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user