reset wireframe when material changes
This commit is contained in:
parent
5541e680ce
commit
e525d12552
1 changed files with 3 additions and 0 deletions
|
|
@ -171,6 +171,9 @@ mesh.model = class MeshModel extends mesh.object {
|
|||
|
||||
material(mat) {
|
||||
this.mesh.material = mat.clone === true ? this.mesh.material.clone() : mat;
|
||||
if (this._wire) {
|
||||
this.wireframe(false);
|
||||
}
|
||||
}
|
||||
|
||||
remove() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue