Przeglądaj źródła

Editor: Use selected camera when playing the scene. (#25641)

Michael Herzog 2 lat temu
rodzic
commit
d7a246a555
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      editor/js/Editor.js

+ 1 - 1
editor/js/Editor.js

@@ -695,7 +695,7 @@ Editor.prototype = {
 				toneMapping: this.config.getKey( 'project/renderer/toneMapping' ),
 				toneMappingExposure: this.config.getKey( 'project/renderer/toneMappingExposure' )
 			},
-			camera: this.camera.toJSON(),
+			camera: this.viewportCamera.toJSON(),
 			scene: this.scene.toJSON(),
 			scripts: this.scripts,
 			history: this.history.toJSON()