Skip to content

Commit c09bcff

Browse files
jrs-unityEvergreen
authored andcommitted
Fixed graphical issue when modifying Reflection Probe sizes
There is a graphical issue when resizing Reflection Probe box sizes on macOS. The issue comes from trying to draw in the Editor (either using `GL` commands or `DrawMeshNow`, for example) while the `Event.current.type != EventType.Repaint` causes graphical issues on Metal. This PR fixes that issue by guarding against this case when rendering the filled in box. Jira: UUM-71467
1 parent da13421 commit c09bcff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.render-pipelines.core/Editor/Gizmo/HierarchicalBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public HierarchicalBox(Color baseColor, Color[] polychromeHandleColors = null, H
190190
public void DrawHull(bool filled)
191191
{
192192
Color previousColor = Handles.color;
193-
if (filled)
193+
if (filled && Event.current.type == EventType.Repaint)
194194
{
195195
// Draw the hull
196196
var xSize = new Vector3(size.z, size.y, 1f);

0 commit comments

Comments
 (0)