Fix do_sphere(), the bounding box wasn't lining up

master
Marc Gilleron 2019-09-11 21:25:15 +01:00
parent cef43e4087
commit d4e7ac7845
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ inline float sdf_blend(float src_value, float dst_value, VoxelTool::Mode mode) {
void VoxelTool::do_sphere(Vector3 center, float radius) {
Rect3i box(Vector3i(center) - Vector3i(Math::floor(radius)), Vector3i(Math::ceil(radius * 2.0)));
Rect3i box(Vector3i(center) - Vector3i(Math::floor(radius)), Vector3i(Math::ceil(radius) * 2));
if (!is_area_editable(box)) {
print_line("Area not editable");