small fixes
This commit is contained in:
parent
619ced6505
commit
e2e169ca60
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user