fix delete face selection

This commit is contained in:
Stewart Allen 2024-09-04 23:11:34 -04:00
commit fd9d2b7f58
2 changed files with 4 additions and 1 deletions

View file

@ -311,7 +311,7 @@ function space_init(data) {
if ([api.modes.object, api.modes.tool, api.modes.sketch].contains(mode)) {
selection.delete();
} else {
for (let m of selection.models()) {
for (let m of api.model.list()) {
m.deleteSelections();
space.refresh()
}

View file

@ -697,6 +697,9 @@ mesh.model = class MeshModel extends mesh.object {
}
deleteSelections(append) {
if (!this.sel.faces.length) {
return;
}
let newverts = this.collectFacesByMaterialIndex(0);
if (newverts) {
if (append) {