1
0
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:
Robin Neal 2019-04-02 13:15:59 +01:00
parent 4a7ebbda54
commit 7599b4ae7d

View File

@ -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);
}
}