mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-30 15:42:42 +08:00
Fix incorrect location of brush outline in java block/item
This commit is contained in:
parent
88d2eaaf92
commit
bd2921cfbc
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user