Skip to content

Commit 546fa75

Browse files
authored
### Fixed: (#87)
- HDRP:BoxLightAdjustment script. some flags are not updated properly when some checkboxes are clicked
1 parent be6a040 commit 546fa75

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

com.unity.toonshader/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog
22
## [0.4.1-preview] - 2021-10-27
33
### Added
4-
* HDRP:Something similar to exposure compensation.
4+
* HDRP:Something similar to HDRP exposure compensation.
55
### Fixed:
66
* typo in documants.
77
* missing mono behaviors in sample scenes.
8+
* HDRP:BoxLightAdjustment script. some flags are not updated properly when some checkboxes are clicked.
89

910
## [0.4.0-preview] - 2021-10-13
1011
### Added

com.unity.toonshader/Editor/HDRP/BoxLightAdjustmentInspector.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ public override void OnInspectorGUI()
110110

111111
if (isChanged)
112112
{
113+
if (target != null)
114+
{
115+
var boxlightAdjustment = target as BoxLightAdjustment;
116+
boxlightAdjustment.OnValidate();
117+
}
113118
// at leaset 2020.3.12f1, not neccessary. but, from which version??
114119
EditorApplication.QueuePlayerLoopUpdate();
115120
}

com.unity.toonshader/Runtime/HDRP/BoxLightAdjustment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void Reset()
5656

5757
}
5858

59-
void OnValidate()
59+
internal void OnValidate()
6060
{
6161
Release();
6262
Initialize();

0 commit comments

Comments
 (0)