Play switches to scene tab; graph tab strictly follows selection

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Fable 5.1 committed 2026-09-07 14:28:43 +02:00
1 parent 9060da615a
commit 551a50ffc9
4 files changed
+26 -6

No files matched your search

+3 -3
View File
@@ -20,8 +20,8 @@ interface PortAnchor {
/**
* The node graph editor for one behavior asset. Shows the graph of whatever behavior the
* selection refers to (asset, placed object or node) and keeps showing it while unrelated
* things are selected, so the user can flip between Scene and Graph tabs freely.
* selection refers to (asset, placed object or node). When nothing or a non-behavior is
* selected the editor is empty – the graph strictly mirrors the selection.
*
* Interactions: drag nodes, drag from port to port to connect, right-click the canvas for
* the node palette, right-click a node or port for delete/disconnect, wheel to zoom, drag
@@ -100,7 +100,7 @@ export class GraphEditor extends Widget {
this.sync();
this.needsFit = true;
this.fitView();
} else if (!this.asset()) {
} else if (!wanted || !this.asset()) {
this.assetId = null;
this.sync();
} else {