Fix top/bottom slot panels in image editor

Allow model merging in new bedrock format
This commit is contained in:
JannisX11 2023-12-16 13:20:16 +01:00
parent acd048022b
commit 124dd86405
2 changed files with 2 additions and 2 deletions

View File

@ -1137,7 +1137,7 @@ var codec = new Codec('bedrock', {
return;
}
}
if (data && index !== undefined) {
if (data) {
if (Group.all.find(group => group.bedrock_binding)) {
data.format_version = '1.16.0';

View File

@ -2102,7 +2102,7 @@ Interface.definePanels(function() {
: Math.floor(Math.clamp(UVEditor.panel.width - 8, 64, 1e5));
this.width = size;
if (Format.image_editor) {
this.height = Interface.center_screen.clientHeight - 38;
this.height = Interface.preview.clientHeight - 38;
if (Blockbench.isMobile) {
let panel = Interface.getBottomPanel();
if (panel) this.height -= panel.height;