Prevent multiple cluster refs
This commit is contained in:
parent
42580a83ea
commit
142bef5fa4
@ -894,7 +894,10 @@ namespace NanoBrain {
|
||||
foreach (Synapse synapse in neuron.synapses) {
|
||||
if (synapse.neuron.parent.name != cluster.name) {
|
||||
ExternalClusterData clusterData = new(synapse.neuron.parent);
|
||||
if (this.clusters.Find(data => data.name == clusterData.name) == null) {
|
||||
this.clusters.Add(clusterData);
|
||||
//Debug.Log("Add cluster");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user