mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Check if asset is saved instead of playmode check
This commit is contained in:
parent
4a7ebbda54
commit
7599b4ae7d
@ -72,11 +72,8 @@ namespace XNodeEditor {
|
||||
|
||||
/// <summary> Handle Selection Change events</summary>
|
||||
private void OnSelectionChange() {
|
||||
if (!EditorApplication.isPlaying)
|
||||
return;
|
||||
|
||||
var nodeGraph = Selection.activeObject as XNode.NodeGraph;
|
||||
if (nodeGraph) {
|
||||
if (nodeGraph && !AssetDatatbase.Contains(nodeGraph)) {
|
||||
Open(nodeGraph);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user