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:
parent
833e26ccc3
commit
4721edc7ec
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user