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:
JannisX11 2023-06-30 19:21:26 +02:00
parent 8fdbf265ce
commit 65757d2a2d
3 changed files with 3 additions and 2 deletions

View File

@ -1861,7 +1861,7 @@ const BARS = {
} else if (Modes.edit && Mesh.selected.length && mesh_selection) {
let meshes = Mesh.selected.slice();
Undo.initEdit({elements: meshes})
Undo.initEdit({elements: meshes, outliner: true})
Mesh.selected.forEach(mesh => {
let selected_vertices = mesh.getSelectedVertices();

View File

@ -202,7 +202,7 @@ class Menu {
})
more_button.addEventListener('mouseleave', e => {
if (node.is(':hover') && !childlist.is(':hover')) {
scope.hover(node, e);
scope.hover(node.get(0), e);
}
})
}

View File

@ -197,6 +197,7 @@ BARS.defineActions(function() {
new Dialog({
id: 'share_model_link',
title: 'dialog.share_model.title',
singleButton: true,
form: {
link: {type: 'text', value: link, readonly: true, share_text: true}
}