mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
Fixes generating video on preview camera. (#348)
This commit is contained in:
1 parent
45a38ee2e9
commit
a262244ec5
1 file changed
+9
@@ -1242,7 +1242,16 @@ class Editor {
|
||||
if (this.rawRenderer) {
|
||||
this.rawRenderer.setSize(this.startRenderWidth, this.startRenderHeight);
|
||||
}
|
||||
|
||||
this.canvasRenderCamReference = document.getElementById("camera-view");
|
||||
this.rawRenderer = new THREE.WebGLRenderer({
|
||||
antialias: false,
|
||||
canvas: this.canvasRenderCamReference,
|
||||
preserveDrawingBuffer: true,
|
||||
});
|
||||
this.activeScene.renderMode(false);
|
||||
|
||||
this.switchEdit();
|
||||
}
|
||||
|
||||
async switchPreview() {
|
||||
|
||||
Reference in new issue
Block a user