diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index dda86c31901..8207ed2b988 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed usage of Panini Projection with floating point HDRP and Post Processing color buffers. - Fixed a NaN generating in Area light code. - Fixed CustomPassUtils scaling issues when used with RTHandles allocated from a RenderTexture. +- Fixed undo of some properties on light editor. ### Changed - Reduced the maximal number of bounces for both RTGI and RTR (case 1318876). diff --git a/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightEditor.cs b/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightEditor.cs index 7e448d5ef8f..e3bcab7b543 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightEditor.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightEditor.cs @@ -54,7 +54,7 @@ void OnUndoRedo() // Serialized object is lossing references after an undo if (m_SerializedHDLight.serializedObject.targetObject != null) { - m_SerializedHDLight.serializedObject.ApplyModifiedProperties(); + m_SerializedHDLight.serializedObject.Update(); foreach (var hdLightData in m_AdditionalLightDatas) if (hdLightData != null) hdLightData.UpdateAreaLightEmissiveMesh();