move re-gen of index to model reload

This commit is contained in:
Stewart Allen 2022-03-31 21:44:47 -04:00
commit a74261b341
2 changed files with 2 additions and 2 deletions

View file

@ -360,8 +360,6 @@ function space_init(data) {
for (let m of selection.models()) {
m.deleteSelections(mode);
space.refresh()
// re-gen face index
api.mode.check();
}
} else {
for (let s of selection.list(true)) {

View file

@ -221,6 +221,8 @@ mesh.model = class MeshModel extends mesh.object {
this.wireframe(was);
// fixup normals
this.normals({refresh: true});
// re-gen face index in surface mode
mesh.api.mode.check();
}
rename(file) {