mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix undoing mesh removing ignoring outliner position in some cases
Fix error in menus Fix Share Model link dialog having unneccesary button
This commit is contained in:
parent
8fdbf265ce
commit
65757d2a2d
@ -1861,7 +1861,7 @@ const BARS = {
|
|||||||
} else if (Modes.edit && Mesh.selected.length && mesh_selection) {
|
} else if (Modes.edit && Mesh.selected.length && mesh_selection) {
|
||||||
|
|
||||||
let meshes = Mesh.selected.slice();
|
let meshes = Mesh.selected.slice();
|
||||||
Undo.initEdit({elements: meshes})
|
Undo.initEdit({elements: meshes, outliner: true})
|
||||||
|
|
||||||
Mesh.selected.forEach(mesh => {
|
Mesh.selected.forEach(mesh => {
|
||||||
let selected_vertices = mesh.getSelectedVertices();
|
let selected_vertices = mesh.getSelectedVertices();
|
||||||
|
@ -202,7 +202,7 @@ class Menu {
|
|||||||
})
|
})
|
||||||
more_button.addEventListener('mouseleave', e => {
|
more_button.addEventListener('mouseleave', e => {
|
||||||
if (node.is(':hover') && !childlist.is(':hover')) {
|
if (node.is(':hover') && !childlist.is(':hover')) {
|
||||||
scope.hover(node, e);
|
scope.hover(node.get(0), e);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -197,6 +197,7 @@ BARS.defineActions(function() {
|
|||||||
new Dialog({
|
new Dialog({
|
||||||
id: 'share_model_link',
|
id: 'share_model_link',
|
||||||
title: 'dialog.share_model.title',
|
title: 'dialog.share_model.title',
|
||||||
|
singleButton: true,
|
||||||
form: {
|
form: {
|
||||||
link: {type: 'text', value: link, readonly: true, share_text: true}
|
link: {type: 'text', value: link, readonly: true, share_text: true}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user