mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Add setting to skip disambiguous paste menu
This commit is contained in:
parent
317519de98
commit
7a849587f7
@ -76,7 +76,9 @@ const Clipbench = {
|
||||
if (UVEditor.getMappableElements().length && UVEditor.clipboard.length) {
|
||||
options.push(Clipbench.types.face);
|
||||
}
|
||||
if (options.length > 1) {
|
||||
if (options.length > 1 && options.includes(settings.preview_paste_behavior.value)) {
|
||||
return settings.preview_paste_behavior.value;
|
||||
} else if (options.length > 1) {
|
||||
return await new Promise((resolve, reject) => {
|
||||
new Menu(options.map(option => {
|
||||
return {
|
||||
|
@ -241,6 +241,12 @@ const Settings = {
|
||||
}});
|
||||
new Setting('deactivate_size_limit',{category: 'edit', value: false});
|
||||
new Setting('vertex_merge_distance',{category: 'edit', value: 0.1, step: 0.01, type: 'number'});
|
||||
new Setting('preview_paste_behavior',{category: 'edit', value: 'always_ask', type: 'select', options: {
|
||||
'always_ask': tl('settings.preview_paste_behavior.always_ask'),
|
||||
'outliner': tl('menu.paste.outliner'),
|
||||
'face': tl('menu.paste.face'),
|
||||
'mesh_selection': tl('menu.paste.mesh_selection'),
|
||||
}});
|
||||
|
||||
//Grid
|
||||
new Setting('base_grid', {category: 'grid', value: true,});
|
||||
|
File diff suppressed because one or more lines are too long
@ -650,6 +650,9 @@
|
||||
"settings.deactivate_size_limit.desc": "Deactivate the size limit for specific model formats. WARNING: This can cause invalid models.",
|
||||
"settings.vertex_merge_distance": "Vertex Merge Distance",
|
||||
"settings.vertex_merge_distance.desc": "Distance within which vertices are merged using merging by distance",
|
||||
"settings.preview_paste_behavior": "Default Preview Paste Behavior",
|
||||
"settings.preview_paste_behavior.desc": "Select the behavior when pasting something into the preview in Edit mode and multiple options are available",
|
||||
"settings.preview_paste_behavior.always_ask": "Always Ask",
|
||||
|
||||
"settings.autouv": "Auto UV",
|
||||
"settings.autouv.desc": "Enable Auto UV by default",
|
||||
|
Loading…
Reference in New Issue
Block a user