mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-18 15:26:19 +08:00
Fix size issue with orthographic camera in GIF recorder
Fix loading error on older browsers
This commit is contained in:
parent
35ced3b3d0
commit
0b8bc8a899
@ -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 = [];
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user