Skip to content

Commit 86b1fd0

Browse files
committed
Fixed: Resetting ToonEvAdjustmentCurve cause something broken.
1 parent 78f90e4 commit 86b1fd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

com.unity.toonshader/Runtime/ToonEvAdjustmentCurve.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,13 @@ void Initialize()
166166
void Release()
167167
{
168168
if (m_initialized)
169-
{
169+
{
170+
m_ExposureArray = null;
171+
Shader.SetGlobalInt(kExposureAdjustmentPorpName, 0);
170172
}
171173

172174
m_initialized = false;
173-
Shader.SetGlobalInt(kExposureAdjustmentPorpName, 0);
175+
174176
}
175177
/*
176178
public static void DestroyUnityObject(UnityObject obj)

0 commit comments

Comments
 (0)