fix split normals. model on bed no gap

This commit is contained in:
Stewart Allen 2022-01-15 22:24:54 -05:00
commit c4fd0cef74
5 changed files with 40 additions and 19 deletions

View file

@ -158,6 +158,8 @@ mesh.model = class MeshModel extends mesh.object {
worker.model_load({id: this.id, name: this.name, vertices, indices});
// restore wireframe state
this.wireframe(was);
// fixup normals
this.normals({refresh: true});
}
get group() {
@ -290,6 +292,9 @@ mesh.model = class MeshModel extends mesh.object {
if (bool.toggle) {
bool = !was;
}
if (bool.refresh && !was) {
return;
}
// no change
if (was === bool) {
return was;