Fix size issue with orthographic camera in GIF recorder

Fix loading error on older browsers
This commit is contained in:
JannisX11 2023-01-19 21:21:33 +01:00
parent 35ced3b3d0
commit 0b8bc8a899
3 changed files with 7 additions and 2 deletions

View File

@ -805,7 +805,6 @@ window.Dialog = class Dialog {
var bar = $(this.object).find(`.form_bar_${form_id}`)
if (bar.length) return bar;
}
static stack = []
}
window.Dialog.stack = [];

View File

@ -492,6 +492,8 @@ function setupProject(format) {
Modes.options.edit.select();
} else if (format.paint_mode) {
Modes.options.paint.select();
} else if (format.animation_mode) {
Modes.options.animate.select();
}
if (typeof Format.onSetup == 'function') {
Format.onSetup(Project, false)

View File

@ -323,8 +323,12 @@ const Screencam = {
// Update camera
NoAAPreview.controls.target.copy(preview.controls.target);
NoAAPreview.camera.position.copy(preview.camera.position);
if (NoAAPreview.isOrtho && NoAAPreview.camera.zoom != preview.camera.zoom) {
if (NoAAPreview.isOrtho) {
NoAAPreview.camera.zoom = preview.camera.zoom;
NoAAPreview.camera.top = preview.camera.top;
NoAAPreview.camera.bottom = preview.camera.bottom;
NoAAPreview.camera.right = preview.camera.right;
NoAAPreview.camera.left = preview.camera.left;
NoAAPreview.camOrtho.updateProjectionMatrix();
}