From e2e169ca609e286cf0ec708ef9baccb684e25edb Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 17 Apr 2026 17:05:25 +0200 Subject: [PATCH] small fixes --- Editor/ClusterViewer.cs | 2 +- Runtime/Scripts/Brain.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/ClusterViewer.cs b/Editor/ClusterViewer.cs index fe94305..6a386b1 100644 --- a/Editor/ClusterViewer.cs +++ b/Editor/ClusterViewer.cs @@ -545,7 +545,7 @@ namespace NanoBrain { if (e.type == EventType.MouseDown && e.button == 0) { // Consume the event so the scene doesn't also handle it e.Use(); - if (nucleus.parent != null && nucleus.parent is Cluster parentCluster2) + if (nucleus is Cluster parentCluster2) HandleClicked(parentCluster2); else HandleClicked(nucleus); diff --git a/Runtime/Scripts/Brain.cs b/Runtime/Scripts/Brain.cs index 93b05a7..81f2b4c 100644 --- a/Runtime/Scripts/Brain.cs +++ b/Runtime/Scripts/Brain.cs @@ -22,7 +22,7 @@ namespace NanoBrain { get { if (brainInstance == null && brainPrefab != null) { brainInstance = new Cluster(brainPrefab) { - name = brainPrefab.name + " (Instance)" + name = brainPrefab.name }; } else if (brainInstance != null && brainPrefab == null) { brainInstance = null;