mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +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:
parent
833e26ccc3
commit
4721edc7ec
@ -57,7 +57,7 @@ namespace XNodeEditor {
|
|||||||
else {
|
else {
|
||||||
if (GUILayout.Button("Apply") || (e.isKey && e.keyCode == KeyCode.Return)) {
|
if (GUILayout.Button("Apply") || (e.isKey && e.keyCode == KeyCode.Return)) {
|
||||||
target.name = input;
|
target.name = input;
|
||||||
AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(target));
|
AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(target), input);
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user