reset wireframe when material changes

This commit is contained in:
Stewart Allen 2022-01-03 00:01:25 -05:00
commit e525d12552

View file

@ -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() {