Skip to content

Commit bbc60fc

Browse files
Fixed case where material keywords would not get setup before usage (#2961)
1 parent 226619f commit bbc60fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4343
- Fixed the planar depth texture not being properly created and rendered to (case 1299617).
4444
- Fixed C# 8 compilation issue with turning on nullable checks (case 1300167)
4545
- Fixed affects AO for deacl materials.
46+
- Fixed case where material keywords would not get setup before usage.
4647

4748
### Changed
4849
- Removed the material pass probe volumes evaluation mode.

com.unity.render-pipelines.high-definition/Editor/AssetProcessors/MaterialPostProcessor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
157157
//due to FB 1175514, this not work. It is being fixed though.
158158
//delayed call of the following work in some case and cause infinite loop in other cases.
159159
AssetDatabase.AddObjectToAsset(assetVersion, asset);
160+
161+
// Init material in case it's used before an inspector window is opened
162+
HDShaderUtils.ResetMaterialKeywords(material);
160163
}
161164
else
162165
{

0 commit comments

Comments
 (0)