Adding alignment
This commit is contained in:
parent
fa78dcddb5
commit
d72f15eb66
@ -15,6 +15,7 @@ namespace NanoBrain.Unity {
|
||||
|
||||
void OnEnable() {
|
||||
clusterPrefab = (ClusterPrefab)target;
|
||||
clusterPrefab.cluster.name = clusterPrefab.name;
|
||||
view = ClusterView.GetClusterView(serializedObject);
|
||||
view.currentCluster ??= clusterPrefab.cluster;
|
||||
view.currentNucleus = clusterPrefab.cluster.defaultOutput;
|
||||
@ -378,7 +379,7 @@ namespace NanoBrain.Unity {
|
||||
}
|
||||
|
||||
protected virtual void AddNeuronInput(Nucleus nucleus) {
|
||||
Neuron newNeuron = new(this.view.currentCluster, "New Neuron");
|
||||
Neuron newNeuron = new(this.view.currentNucleus.parent, "New Neuron");
|
||||
//Neuron newNeuroid = new(this.prefab.cluster, "New neuron");
|
||||
newNeuron.AddReceiver(nucleus);
|
||||
this.view.currentNucleus = newNeuron;
|
||||
|
||||
@ -768,7 +768,7 @@ namespace NanoBrain {
|
||||
if (nucleus is not Cluster cluster)
|
||||
continue;
|
||||
List<Nucleus> receivers = cluster.CollectReceivers();
|
||||
Debug.Log($"cluster receiver count = {receivers.Count}");
|
||||
//Debug.Log($"cluster receiver count = {receivers.Count}");
|
||||
if (receivers.Count == 0)
|
||||
this.nuclei.Remove(nucleus);
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@ namespace NanoBrain {
|
||||
/// The cluster instance in which the nucleus is located
|
||||
/// </summary>
|
||||
[SerializeReference]
|
||||
[HideInInspector]
|
||||
//[HideInInspector]
|
||||
public Cluster parent;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user