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:
parent
74d7d779f9
commit
2ce31aa92c
@ -48,8 +48,8 @@ namespace XNodeEditor {
|
|||||||
// If input is empty, revert name to default instead
|
// If input is empty, revert name to default instead
|
||||||
if (input == null || input.Trim() == "") {
|
if (input == null || input.Trim() == "") {
|
||||||
if (GUILayout.Button("Revert to default") || (e.isKey && e.keyCode == KeyCode.Return)) {
|
if (GUILayout.Button("Revert to default") || (e.isKey && e.keyCode == KeyCode.Return)) {
|
||||||
target.name = NodeEditorUtilities.NodeDefaultName(target.GetType());
|
target.name = NodeEditorUtilities.NodeDefaultName(target.GetType());
|
||||||
AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(target), target.name);
|
AssetDatabase.RenameAsset(AssetDatabase.GetAssetPath(target), target.name);
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user