Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 41407dc

Browse files
committed
Fixed warning at build time
1 parent 3990b5b commit 41407dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PostProcessing/Runtime/PostProcessVolume.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ void Update()
152152
}
153153
}
154154

155-
#if UNITY_EDITOR
156155
// TODO: Look into a better volume previsualization system
157156
void OnDrawGizmos()
158157
{
@@ -161,14 +160,16 @@ void OnDrawGizmos()
161160

162161
if (isGlobal || colliders == null)
163162
return;
164-
163+
164+
#if UNITY_EDITOR
165165
// Can't access the UnityEditor.Experimental.PostProcessing namespace from here, so
166166
// we'll get the preferred color manually
167167
unchecked
168168
{
169169
int value = UnityEditor.EditorPrefs.GetInt("PostProcessing.Volume.GizmoColor", (int)0x8033cc1a);
170170
Gizmos.color = ColorUtilities.ToRGBA((uint)value);
171171
}
172+
#endif
172173

173174
Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, transform.localScale);
174175

@@ -218,6 +219,5 @@ void OnDrawGizmos()
218219

219220
colliders.Clear();
220221
}
221-
#endif
222222
}
223223
}

0 commit comments

Comments
 (0)