From 993f904a406df9c7c9f7c560561eabf258aa3f74 Mon Sep 17 00:00:00 2001 From: ycw Date: Fri, 17 May 2024 14:06:08 -0500 Subject: [PATCH] update pathtracer camera on resize --- editor/js/Viewport.Pathtracer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/Viewport.Pathtracer.js b/editor/js/Viewport.Pathtracer.js index 3b4b4dbb836c10..63a983967a1978 100644 --- a/editor/js/Viewport.Pathtracer.js +++ b/editor/js/Viewport.Pathtracer.js @@ -22,7 +22,7 @@ function ViewportPathtracer( renderer ) { if ( pathTracer === null ) return; // path tracer size automatically updates based on the canvas - pathTracer.reset(); + pathTracer.updateCamera(); }