Преглед на файлове

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;
 
 		// path tracer size automatically updates based on the canvas
-		pathTracer.reset();
+		pathTracer.updateCamera();
 
 	}