fix delete face selection
This commit is contained in:
parent
4dc9e38a08
commit
fd9d2b7f58
2 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue