浏览代码

Fix change tracking so that it doesn't prompt you to save when closing right after you clicked save

/main
Peter Bay Bastian 7 年前
当前提交
d21cc6ad
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Implementation/SerializableGraphObject.cs
  2. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphEditWindow.cs

1
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Implementation/SerializableGraphObject.cs


public bool isDirty
{
get { return m_IsDirty; }
set { m_IsDirty = value; }
}
public void RegisterCompleteObjectUndo(string name)

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphEditWindow.cs


if (m_GraphObject.graph.GetType() == typeof(MasterRemapGraph))
UpdateAbstractSubgraphOnDisk<MasterRemapGraph>(path);
graphObject.isDirty = false;
var windows = Resources.FindObjectsOfTypeAll<MaterialGraphEditWindow>();
foreach (var materialGraphEditWindow in windows)
{

正在加载...
取消
保存