diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 4d80a861a66..9b90c2c1d0a 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -63,6 +63,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed ArgumentNullException when saving shader graphs after removing the compositor from the scene (case 1268658) - Fixed issue with updating the compositor output when not in play mode (case 1266216) - Fixed warning with area mesh (case 1268379) +- Fixed issue with diffusion profile not being updated upon reset of the editor. ### Changed - Preparation pass for RTSSShadows to be supported by render graph. diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/DiffusionProfile/DiffusionProfileSettingsEditor.cs b/com.unity.render-pipelines.high-definition/Editor/Material/DiffusionProfile/DiffusionProfileSettingsEditor.cs index d18fe75c9ac..e061c8844f4 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Material/DiffusionProfile/DiffusionProfileSettingsEditor.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Material/DiffusionProfile/DiffusionProfileSettingsEditor.cs @@ -131,7 +131,9 @@ public override void OnInspectorGUI() serializedObject.ApplyModifiedProperties(); - if (scope.changed) + // NOTE: We cannot change only upon scope changed since there is no callback when Reset is triggered for Editor and the scope is not changed when Reset is called. + // The following operations are not super cheap, but are not overly expensive, so we instead trigger the change every time inspector is drawn. + // if (scope.changed) { // Validate and update the cache for this profile only profile.objReference.Validate();