summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-03-15 13:18:27 +0100
committerGitHub <noreply@github.com>2022-03-15 13:18:27 +0100
commit51bbcbdec2f971ed0113992b34335ef3c9873e79 (patch)
tree2a6c142089cb1c766f3b18107d70e8a418ce6248 /scene/3d
parentd0fee76717abde7ce7d922e488a03782669b2450 (diff)
parent39d429e49705fe153a20dfb27421f1246237a683 (diff)
Merge pull request #45263 from KoBeWi/😕
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/voxelizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/voxelizer.cpp b/scene/3d/voxelizer.cpp
index f56e3caa4b..bda3868fbb 100644
--- a/scene/3d/voxelizer.cpp
+++ b/scene/3d/voxelizer.cpp
@@ -872,7 +872,7 @@ Vector<uint8_t> Voxelizer::get_sdf_3d_image() const {
if (d == 0) {
w[i] = 0;
} else {
- w[i] = MIN(d, 254) + 1;
+ w[i] = MIN(d, 254u) + 1;
}
}
}