浏览代码

Merge pull request #1401 from Unity-Technologies/Fix-reset-material-Keyword

Fix reset material Keyword
/main
GitHub 6 年前
当前提交
f3b0f60d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Editor/HDEditorUtils.cs

2
com.unity.render-pipelines.high-definition/HDRP/Editor/HDEditorUtils.cs


if (k_MaterialResetters.TryGetValue(material.shader.name, out resetter))
{
CoreEditorUtils.RemoveMaterialKeywords(material);
// We need to reapply ToggleOff/Toggle keyword after reset via ApplyMaterialPropertyDrawers
MaterialEditor.ApplyMaterialPropertyDrawers(material);
resetter(material);
EditorUtility.SetDirty(material);
return true;

正在加载...
取消
保存