mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-23 16:31:20 +08:00
Reverted caching floor_coordinates condition
This commit is contained in:
parent
bbcec47049
commit
b5362e403a
@ -1087,8 +1087,7 @@ class Preview {
|
||||
let y = (1-intersect.uv.y) * texture.height;
|
||||
let truncated_x = x;
|
||||
let truncated_y = y;
|
||||
let floor_coordinates = Condition(Toolbox.selected.brush.floor_coordinates);
|
||||
if (floor_coordinates) {
|
||||
if (Condition(Toolbox.selected.brush.floor_coordinates)) {
|
||||
offset = BarItems.slider_brush_size.get()%2 == 0 && Toolbox.selected.brush?.offset_even_radius ? 0 : 0.5;
|
||||
truncated_x = Math.round(x + offset) - offset;
|
||||
truncated_y = Math.round(y + offset) - offset;
|
||||
|
Loading…
Reference in New Issue
Block a user