diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 34d76efb5bf..f9490cce68d 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed compilation errors from Path Tracing on the PS5 build. - Fixed custom shader GUI for material inspector. - Fixed rasterized accumulation motion blur when DoF is enabled (case 1378497). +- Fixed light mode not available after switching a light to area "Disc" or "Tube" (case 1372588). ### Changed - Optimizations for the physically based depth of field. diff --git a/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs b/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs index 840f172584f..6bfad29102f 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs @@ -227,7 +227,7 @@ static void DrawGeneralContent(SerializedHDLight serialized, Editor owner, bool EditorGUI.showMixedValue = false; // Draw the mode, for Tube and Disc lights, there is only one choice, so we can disable the enum. - using (new EditorGUI.DisabledScope(serialized.areaLightShape == AreaLightShape.Tube || serialized.areaLightShape == AreaLightShape.Disc)) + using (new EditorGUI.DisabledScope(updatedLightType == HDLightType.Area && (serialized.areaLightShape == AreaLightShape.Tube || serialized.areaLightShape == AreaLightShape.Disc))) serialized.settings.DrawLightmapping(); if (updatedLightType == HDLightType.Area)