Skip to content

Commit

Permalink
VOXEDIT: fixed off-by-one in negative direction
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Jun 15, 2024
1 parent c4760b1 commit 4d9ef19
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ int PlaneBrush::calculateThickness(const BrushContext &context) const {
return 0;
}
}
// extrude is taking the voxel at the cursor position into account and thus we get
// a region of the thickness of 2 - we have to reduce this again to make the aabb
// brush span the 3rd dimension correctly.
return core_max(1, region.getDimensionsInVoxels()[idx] - 1);
}
return core_max(1, region.getDimensionsInVoxels()[idx]);
}
Expand Down

0 comments on commit 4d9ef19

Please sign in to comment.