浏览代码

one more new line

Added another new line character since that is how the save dirty scene looks like
/main
martint-unity 6 年前
当前提交
d638cb4b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs

2
com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs


if (graphObject != null)
{
string nameOfFile = AssetDatabase.GUIDToAssetPath(selectedGuid);
if (graphObject.isDirty && EditorUtility.DisplayDialog("Shader Graph Has Been Modified", "Do you want to save the changes you made in the shader graph?\n" + nameOfFile + "\nYour changes will be lost if you don't save them.", "Save", "Don't Save"))
if (graphObject.isDirty && EditorUtility.DisplayDialog("Shader Graph Has Been Modified", "Do you want to save the changes you made in the shader graph?\n" + nameOfFile + "\n\nYour changes will be lost if you don't save them.", "Save", "Don't Save"))
UpdateAsset();
Undo.ClearUndo(graphObject);
DestroyImmediate(graphObject);

正在加载...
取消
保存