Option to hide selection outlines in paint mode

Closes #1869
This commit is contained in:
JannisX11 2023-05-06 14:57:32 +02:00
parent eb2bca5e88
commit 52550a9ef9
3 changed files with 8 additions and 1 deletions

View File

@ -489,6 +489,7 @@ const Settings = {
Interface.Panels.color.vue.picker_type = value ? 'wheel' : 'box';
}});
new Setting('pick_color_opacity', {category: 'paint', value: false});
new Setting('outlines_in_paint_mode', {category: 'paint', value: true});
new Setting('paint_through_transparency', {category: 'paint', value: true});
new Setting('paint_side_restrict', {category: 'paint', value: true});
new Setting('paint_with_stylus_only', {category: 'paint', value: false});

View File

@ -623,7 +623,11 @@ class NodePreviewController extends EventSystem {
updateSelection(element) {
let {mesh} = element;
if (mesh && mesh.outline) {
mesh.outline.visible = element.selected
if (Modes.paint && settings.outlines_in_paint_mode.value === false) {
mesh.outline.visible = false;
} else {
mesh.outline.visible = element.selected;
}
}
this.dispatchEvent('update_selection', {element});

View File

@ -891,6 +891,8 @@
"settings.color_wheel.desc": "Use the color wheel as the main color picker",
"settings.pick_color_opacity": "Pick Color Opacity",
"settings.pick_color_opacity.desc": "Pick the color opacity with the Color Picker and set it as brush opacity",
"settings.outlines_in_paint_mode": "Selection Outlines in Paint Mode",
"settings.outlines_in_paint_mode.desc": "Display element selection outlines while in paint mode",
"settings.paint_through_transparency": "Paint Through Transparency",
"settings.paint_through_transparency.desc": "Paint through transparent pixels when Lock Alpha Channel is enabled",
"settings.paint_side_restrict": "Restrict Brush to Side",