浏览代码

update pathtracer camera on resize (#28412)

ycw 1 年之前
父节点
当前提交
695574601a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/js/Viewport.Pathtracer.js

+ 1 - 1
editor/js/Viewport.Pathtracer.js

@@ -22,7 +22,7 @@ function ViewportPathtracer( renderer ) {
 		if ( pathTracer === null ) return;
 		if ( pathTracer === null ) return;
 
 
 		// path tracer size automatically updates based on the canvas
 		// path tracer size automatically updates based on the canvas
-		pathTracer.reset();
+		pathTracer.updateCamera();
 
 
 	}
 	}