Fix do_sphere(), the bounding box wasn't lining up
parent
cef43e4087
commit
d4e7ac7845
|
@ -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) {
|
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)) {
|
if (!is_area_editable(box)) {
|
||||||
print_line("Area not editable");
|
print_line("Area not editable");
|
||||||
|
|
Loading…
Reference in New Issue