浏览代码

HDRP: Decal - Silent a warning

/main
Sebastien Lagarde 6 年前
当前提交
09928ece
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/UpgradeMenuItem.cs

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


// When _HdrpVersion don't exist we MUST create it, otherwise next call to
// mat.SetFloat("_HdrpVersion", value) will just put the default value instead of the value we pass!
// a call to GetFloat("_HdrpVersion") solve this.
float useless = mat.GetFloat("_HdrpVersion");
#pragma warning disable 219 // Silent warning
float unused = mat.GetFloat("_HdrpVersion");
#pragma warning restore 219
return 0.0f;
}

正在加载...
取消
保存