1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

Fixed rename not saving the filename change. (#149)

- AssetDataBase.ImportAsset was not correctly renaming the asset. Changed it over to use the standard rename method.
This commit is contained in:
Adsitoz 2019-06-08 04:04:19 +10:00 committed by Thor Brigsted
parent 833e26ccc3
commit 4721edc7ec

View File

@ -57,10 +57,10 @@ namespace XNodeEditor {
else {
if (GUILayout.Button("Apply") || (e.isKey && e.keyCode == KeyCode.Return)) {
target.name = input;
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(target));
AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(target), input);
Close();
}
}
}
}
}
}