mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix #2267 Removed faces not restored in Box UV
This commit is contained in:
parent
efb1055bb6
commit
8bbd2fcbdd
@ -620,6 +620,19 @@ class Cube extends OutlinerElement {
|
||||
this.uv_offset[0] = this.faces.east.uv[0];
|
||||
}
|
||||
this.uv_offset[1] = this.faces.up.uv[3];
|
||||
let texture = Texture.getDefault();
|
||||
for (let fkey in this.faces) {
|
||||
if (this.faces[fkey].texture) {
|
||||
texture = this.faces[fkey].getTexture();
|
||||
}
|
||||
}
|
||||
for (let fkey in this.faces) {
|
||||
if (this.faces[fkey].texture === null) {
|
||||
this.faces[fkey].extend({texture: texture || false});
|
||||
}
|
||||
}
|
||||
this.preview_controller.updateFaces(this);
|
||||
|
||||
} else {
|
||||
for (let fkey in this.faces) {
|
||||
this.faces[fkey].rotation = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user