1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

File uses tabs instead of spaces, changed my spaces to tabs.

This commit is contained in:
Simon Rodriguez 2019-06-21 02:06:26 +02:00
parent 74d7d779f9
commit 2ce31aa92c

View File

@ -48,8 +48,8 @@ namespace XNodeEditor {
// If input is empty, revert name to default instead
if (input == null || input.Trim() == "") {
if (GUILayout.Button("Revert to default") || (e.isKey && e.keyCode == KeyCode.Return)) {
target.name = NodeEditorUtilities.NodeDefaultName(target.GetType());
AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(target), target.name);
target.name = NodeEditorUtilities.NodeDefaultName(target.GetType());
AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(target), target.name);
Close();
}
}