Fix deleting texture not working when mesh part is selected

This commit is contained in:
JannisX11 2023-12-20 23:50:10 +01:00
parent 4d9d056221
commit 813da3fe41

View File

@ -99,7 +99,7 @@ const ProportionalEdit = {
}
SharedActions.add('delete', {
condition: () => Modes.edit && Mesh.selected[0] && Project.mesh_selection[Mesh.selected[0].uuid],
condition: () => Modes.edit && Prop.active_panel == 'preview' && Mesh.selected[0] && Project.mesh_selection[Mesh.selected[0].uuid],
run() {
let meshes = Mesh.selected.slice();
Undo.initEdit({elements: meshes, outliner: true})