浏览代码

Fix issue with upgrade script and embed material

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

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


mat.shader.name == "HDRenderPipeline/Decal"
)
{
// We don't handle embed material as we can't rewrite fbx files
if (Path.GetExtension(path).ToLower() == ".fbx")
{
continue;
}
// Get current version
float materialVersion = UpdateMaterial_GetVersion(path, mat);

[MenuItem("Edit/Render Pipeline/Upgrade all Materials to newer version", priority = CoreUtils.editMenuPriority3)]
static public void UpdateMaterialToNewerVersion()
{
// TODO: We need to handle material that are embed inside scene!
// TODO: We need to handle material that are embed inside scene! + How to handle embed material in fbx?
// Add here all the material upgrade functions
// Note: This is a slow path as we go through all files for each script + update the version number after each script execution,

正在加载...
取消
保存