浏览代码

Merge pull request #1487 from Unity-Technologies/Fix-hdrpversoin-trouble

HDRP: Fix hdrp version trouble (now return current version when no ve…
/main
GitHub 7 年前
当前提交
422525b7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/HDRPVersion.cs

4
com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/HDRPVersion.cs


static public int GetCurrentHDRPProjectVersion()
{
string[] version = new string[1];
version[0] = "0"; // Note: When we don't know what a project is, assume worst case 0
try
{

{
// Don't display warning
//Debug.LogWarning("Unable to read from ProjectSettings/HDRPProjectVersion.txt - Assign default version value");
// When we don't find HDRPProjectVersion file we return the current value. Because this happen when you create new project.
return hdrpVersion;
}
return int.Parse(version[0]);

正在加载...
取消
保存