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) {
|
if (e.type == EventType.MouseDown && e.button == 0) {
|
||||||
// Consume the event so the scene doesn't also handle it
|
// Consume the event so the scene doesn't also handle it
|
||||||
e.Use();
|
e.Use();
|
||||||
if (nucleus.parent != null && nucleus.parent is Cluster parentCluster2)
|
if (nucleus is Cluster parentCluster2)
|
||||||
HandleClicked(parentCluster2);
|
HandleClicked(parentCluster2);
|
||||||
else
|
else
|
||||||
HandleClicked(nucleus);
|
HandleClicked(nucleus);
|
||||||
|
|||||||
@ -22,7 +22,7 @@ namespace NanoBrain {
|
|||||||
get {
|
get {
|
||||||
if (brainInstance == null && brainPrefab != null) {
|
if (brainInstance == null && brainPrefab != null) {
|
||||||
brainInstance = new Cluster(brainPrefab) {
|
brainInstance = new Cluster(brainPrefab) {
|
||||||
name = brainPrefab.name + " (Instance)"
|
name = brainPrefab.name
|
||||||
};
|
};
|
||||||
} else if (brainInstance != null && brainPrefab == null) {
|
} else if (brainInstance != null && brainPrefab == null) {
|
||||||
brainInstance = null;
|
brainInstance = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user