mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
parent
930935a6eb
commit
06fd67e0fe
@ -2212,6 +2212,7 @@ Interface.definePanels(function() {
|
||||
float_size: [500, 600],
|
||||
height: 500
|
||||
},
|
||||
resizable: true,
|
||||
toolbars: [
|
||||
new Toolbar('uv_editor', {
|
||||
children: [
|
||||
@ -2405,8 +2406,8 @@ Interface.definePanels(function() {
|
||||
if (panel) this.height -= panel.height;
|
||||
}
|
||||
|
||||
} else if (Panels.uv.slot.includes('_bar')) {
|
||||
this.height = size * Math.clamp(this.uv_resolution[1] / this.uv_resolution[0], 0.5, 1);
|
||||
} else if (Panels.uv.slot.includes('_bar') && !UVEditor.panel.fixed_height) {
|
||||
this.height = size;
|
||||
|
||||
} else {
|
||||
this.height = Math.clamp(
|
||||
|
Loading…
Reference in New Issue
Block a user