浏览代码

[material graph]Remove upgrade code, no needed yet.

/main
Tim Cooper 8 年前
当前提交
8ecfe640
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 11
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphNode.cs

11
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphNode.cs


{
get
{
if (serializedVersion < kCurrentSerializedVersion)
DoUpgrade();
if (string.IsNullOrEmpty(m_SerializedSubGraph))
return null;

OnEnable();
}
}
/*
if (serializedVersion<kCurrentSerializedVersion)
DoUpgrade();
[SerializeField]
private string m_SubGraphAssetGuid;

m_SerializedSubGraph = EditorJsonUtility.ToJson(helper, true);
serializedVersion = kCurrentSerializedVersion;
m_SubGraphAssetGuid = string.Empty;
}
mark dirty damn
}*/
#else
public MaterialSubGraphAsset subGraphAsset {get; set:}
#endif

正在加载...
取消
保存