blockbench/js/io/formats/image.js
JannisX11 730860c56f Fix mirror painting on meshes
Fix tools not visible in image mode on mobile
Fix Open Model start path prioritizing favorite models
2022-09-09 22:59:40 +02:00

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'))
}
})