fix split normals. model on bed no gap
This commit is contained in:
parent
9149376874
commit
c4fd0cef74
5 changed files with 40 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue