Skip to content

Repeating Textures, new UV Tools and UV options #2427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
16 changes: 15 additions & 1 deletion js/interface/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,21 @@ const Settings = {
new Setting('autouv', {category: 'defaults', value: true});
new Setting('inherit_parent_color', {category: 'defaults', value: false});
new Setting('create_rename', {category: 'defaults', value: false});
new Setting('show_only_selected_uv', {category: 'defaults', value: false});
new Setting('display_uv', {category: 'defaults', value: 'none', type: 'select', description: '', options: {
'selected_faces': tl('menu.uv.display_uv.selected_faces'),
'selected_elements': tl('menu.uv.display_uv.selected_elements'),
'all_elements': tl('menu.uv.display_uv.all_elements'),
}, onChange(value) {
Project.display_uv = UVEditor.vue.display_uv = value;
// Affect other tools.
BarItems.edit_mode_uv_overlay.value = value == 'all_elements';
BarItems.edit_mode_uv_overlay.updateEnabledState();
if (BarItems.paint_mode_uv_overlay.value && value == 'selected_faces') {
UVEditor.vue.uv_overlay = false;
BarItems.paint_mode_uv_overlay.value = false;
BarItems.paint_mode_uv_overlay.updateEnabledState();
}
}});
new Setting('default_path', {category: 'defaults', value: false, type: 'click', condition: isApp, icon: 'burst_mode', click: function() { openDefaultTexturePath() }});
new Setting('animation_snap', {category: 'defaults', value: 24, type: 'number'});
new Setting('uniform_keyframe', {category: 'defaults', value: true});
Expand Down
2 changes: 1 addition & 1 deletion js/io/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ModelProject {
this.mode = 'edit';
this.tool = '';
this.view_mode = 'textured';
this.display_uv = settings.show_only_selected_uv.value ? 'selected_faces' :'selected_elements';
this.display_uv = settings.display_uv.value;
this.exploded_view = false;
this.mirror_modeling_enabled = false;
this.previews = {};
Expand Down
Loading