Просмотр исходного кода

update pathtracer camera on resize (#28412)

ycw 1 год назад
Родитель
Сommit
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;
 
 		// path tracer size automatically updates based on the canvas
-		pathTracer.reset();
+		pathTracer.updateCamera();
 
 	}