Skip to content

Commit 055c1a0

Browse files
committed
Remove Assert check for the last camera in stack
1 parent 1d0c961 commit 055c1a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

com.unity.render-pipelines.universal/Runtime/UniversalRenderer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,10 +853,9 @@ public override void Setup(ScriptableRenderContext context, ref RenderingData re
853853
}
854854

855855
#if UNITY_EDITOR
856-
if (isSceneViewCamera || (isGizmosEnabled && lastCameraInTheStack))
856+
if (isSceneViewCamera || isGizmosEnabled)
857857
{
858858
// Scene view camera should always resolve target (not stacked)
859-
Assertions.Assert.IsTrue(lastCameraInTheStack, "Editor camera must resolve target upon finish rendering.");
860859
m_FinalDepthCopyPass.Setup(m_DepthTexture, RenderTargetHandle.CameraTarget);
861860
m_FinalDepthCopyPass.MssaSamples = 0;
862861
EnqueuePass(m_FinalDepthCopyPass);

0 commit comments

Comments
 (0)