Skip to content

Commit 5410f39

Browse files
FrancescoC-unitysebastienlagarde
authored andcommitted
Fix issue with disc area light editor not updating #1526
1 parent 8802cec commit 5410f39

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1919
- Fixed error about layers when disabling emissive mesh for area lights.
2020
- Fixed issue with sun icon being clipped in the look dev window.
2121
- Fixed lookdev toggling renderers that are set to non editable or are hidden in the inspector.
22+
- Fixed issue causing the editor field not updating the disc area light radius.
2223

2324
### Changed
2425
- Remove MSAA debug mode when renderpipeline asset has no MSAA

com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,9 @@ void UpdateShapeSize()
26842684
shapeHeight = m_ShapeHeight;
26852685

26862686
#if UNITY_EDITOR
2687-
legacyLight.areaSize = new Vector2(shapeWidth, shapeHeight);
2687+
// We don't want to update the disc area since their shape is largely handled by builtin.
2688+
if (GetLightTypeAndShape() != HDLightTypeAndShape.DiscArea)
2689+
legacyLight.areaSize = new Vector2(shapeWidth, shapeHeight);
26882690
#endif
26892691
}
26902692

0 commit comments

Comments
 (0)