Skip to content

Commit c9574da

Browse files
FrancescoC-unitysebastienlagarde
authored andcommitted
Fix for area light baked data not updating when changing the gizmo #1075
1 parent 805e51c commit c9574da

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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
@@ -66,6 +66,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6666
- Fixed issue with culling layer mask of area light's emissive mesh
6767
- Fixed UI drawing of the quaternion (1251235)
6868
- The `CustomPassLoadCameraColor` and `CustomPassSampleCameraColor` functions now returns the correct color buffer when used in after post process instead of the color pyramid (which didn't had post processes).
69+
- Fixed for area light not updating baked light result when modifying with gizmo.
6970

7071
### Changed
7172
- Shadowmask and realtime reflection probe property are hide in Quality settings

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,6 +2677,8 @@ void UpdateShapeSize()
26772677
// Force to clamp the shape if we changed the type of the light
26782678
shapeWidth = m_ShapeWidth;
26792679
shapeHeight = m_ShapeHeight;
2680+
2681+
legacyLight.areaSize = new Vector2(shapeWidth, shapeHeight);
26802682
}
26812683

26822684
/// <summary>

0 commit comments

Comments
 (0)