Reverted caching floor_coordinates condition

This commit is contained in:
Nestorboy 2024-11-03 23:40:45 +01:00
parent bbcec47049
commit b5362e403a

View File

@ -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;