We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee0e74 commit f02c685Copy full SHA for f02c685
editor/js/Menubar.Render.js
@@ -201,12 +201,12 @@ class RenderImageDialog {
201
202
const loader = new THREE.ObjectLoader();
203
204
- const camera = loader.parse( json.camera );
+ const camera = await loader.parseAsync( json.camera );
205
camera.aspect = imageWidth.getValue() / imageHeight.getValue();
206
camera.updateProjectionMatrix();
207
camera.updateMatrixWorld();
208
209
- const scene = loader.parse( json.scene );
+ const scene = await loader.parseAsync( json.scene );
210
211
const renderer = new THREE.WebGLRenderer( { antialias: true } );
212
renderer.setSize( imageWidth.getValue(), imageHeight.getValue() );
0 commit comments