mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
730860c56f
Fix tools not visible in image mode on mobile Fix Open Model start path prioritizing favorite models
25 lines
596 B
JavaScript
25 lines
596 B
JavaScript
new ModelFormat('image', {
|
|
icon: 'image',
|
|
show_on_start_screen: false,
|
|
show_in_new_list: true,
|
|
can_convert_to: false,
|
|
model_identifier: false,
|
|
animated_textures: true,
|
|
edit_mode: false,
|
|
new() {
|
|
if (newProject(this)) {
|
|
TextureGenerator.addBitmapDialog();
|
|
return true;
|
|
}
|
|
},
|
|
onActivation() {
|
|
Interface.preview.classList.add('image_mode');
|
|
UVEditor.vue.hidden = false;
|
|
Interface.preview.append(document.getElementById('UVEditor'))
|
|
},
|
|
onDeactivation() {
|
|
Interface.preview.classList.remove('image_mode');
|
|
Panels.uv.node.append(document.getElementById('UVEditor'))
|
|
}
|
|
})
|