Fix incorrect location of brush outline in java block/item

This commit is contained in:
JannisX11 2023-08-12 11:21:57 +02:00
parent 88d2eaaf92
commit bd2921cfbc
2 changed files with 5 additions and 5 deletions

View File

@ -93,11 +93,6 @@ class CubeFace extends Face {
vector.x -= this.cube.origin[0];
vector.y -= this.cube.origin[1];
vector.z -= this.cube.origin[2];
if (!Format.centered_grid) {
vector.x += 8;
vector.y += 8;
vector.z += 8;
}
return vector;
}
}

View File

@ -1067,6 +1067,11 @@ class Preview {
brush_coord_difference_x.sub(brush_coord);
brush_coord_difference_y.sub(brush_coord);
intersect.object.localToWorld(brush_coord);
if (!Format.centered_grid) {
brush_coord.x += 8;
brush_coord.y += 8;
brush_coord.z += 8;
}
Canvas.brush_outline.position.copy(brush_coord);
// z fighting