Better cross-cluster monitoring
This commit is contained in:
parent
4f8a6abbe9
commit
e4ba7f8497
@ -727,15 +727,8 @@ namespace NanoBrain {
|
||||
protected void OnNeuronClick(Nucleus nucleus) {
|
||||
if (nucleus == this.currentNucleus) {
|
||||
if (Application.isPlaying) {
|
||||
if (nucleus is Cluster cluster) {
|
||||
if (expandArray) {
|
||||
this.currentNucleus = cluster.defaultOutput;
|
||||
if (this.currentNucleus is Neuron neuron && neuron.receivers.Count == 0)
|
||||
this.selectedOutput = this.currentNucleus; expandArray = false;
|
||||
}
|
||||
else
|
||||
expandArray = !expandArray;
|
||||
}
|
||||
if (nucleus is Cluster)
|
||||
expandArray = !expandArray;
|
||||
else
|
||||
expandArray = false;
|
||||
}
|
||||
@ -746,9 +739,17 @@ namespace NanoBrain {
|
||||
}
|
||||
else if (nucleus.parent != null && this.currentNucleus != null && nucleus.parent != this.currentNucleus.parent) {
|
||||
// We go to a different cluster
|
||||
// select the cluster, not the neuron in the cluster
|
||||
this.currentNucleus = nucleus.parent;
|
||||
expandArray = false;
|
||||
if (Application.isPlaying) {
|
||||
this.currentNucleus = nucleus;
|
||||
if (this.currentNucleus is Neuron neuron && neuron.receivers.Count == 0)
|
||||
this.selectedOutput = this.currentNucleus;
|
||||
expandArray = false;
|
||||
}
|
||||
else {
|
||||
// select the cluster, not the neuron in the cluster
|
||||
this.currentNucleus = nucleus.parent;
|
||||
expandArray = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.currentNucleus = nucleus;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user