From b6a3bc1892bcdd595accaaf3a4e9ad76a0467cdd Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Thu, 23 Apr 2026 17:39:51 +0200 Subject: [PATCH] Added insect body parts --- Editor/ClusterEditor.cs | 16 ++++++++-------- Editor/ClusterViewer.cs | 2 +- Editor/ClusterViewer.cs.meta | 11 ++++++++++- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/Editor/ClusterEditor.cs b/Editor/ClusterEditor.cs index 1498a79..6e6ef22 100644 --- a/Editor/ClusterEditor.cs +++ b/Editor/ClusterEditor.cs @@ -84,8 +84,8 @@ namespace NanoBrain { void OnAddClusterOutput() { Nucleus newOutput = new Neuron(this.prefab, "New Output"); this.prefab.RefreshOutputs(); - outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList(); - outputsPopup.value = newOutput.name; + // outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList(); + // outputsPopup.value = newOutput.name; this.currentNucleus = newOutput; } @@ -185,7 +185,7 @@ namespace NanoBrain { if (newName != this.currentNucleus.name) { this.currentNucleus.name = newName; this.prefab.RefreshOutputs(); - outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList(); + // outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList(); anythingChanged = true; } } @@ -537,11 +537,11 @@ namespace NanoBrain { } this.prefab.nuclei.Remove(nucleus); - if (outputsPopup.value == nucleus.name) { - this.prefab.RefreshOutputs(); - outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList(); - outputsPopup.index = 0; - } + // if (outputsPopup.value == nucleus.name) { + // this.prefab.RefreshOutputs(); + // outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList(); + // outputsPopup.index = 0; + // } Neuron.Delete(nucleus); diff --git a/Editor/ClusterViewer.cs b/Editor/ClusterViewer.cs index af0eb48..11013d3 100644 --- a/Editor/ClusterViewer.cs +++ b/Editor/ClusterViewer.cs @@ -25,7 +25,7 @@ namespace NanoBrain { protected VisualElement topMenuContainer; protected ScrollView scrollView; protected IMGUIContainer graphContainer; - protected readonly PopupField outputsPopup; + //protected readonly PopupField outputsPopup; public enum Mode { Focus, diff --git a/Editor/ClusterViewer.cs.meta b/Editor/ClusterViewer.cs.meta index ac68b91..7859dec 100644 --- a/Editor/ClusterViewer.cs.meta +++ b/Editor/ClusterViewer.cs.meta @@ -1,2 +1,11 @@ fileFormatVersion: 2 -guid: 4fe58945c76d153edacc220597474ad2 \ No newline at end of file +guid: 4fe58945c76d153edacc220597474ad2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: