move re-gen of index to model reload
This commit is contained in:
parent
463fec6bd0
commit
a74261b341
2 changed files with 2 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue