diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-25 00:10:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-25 00:10:14 +0200 |
commit | 442c65f359cba2fb8998a9bb6b9fe0b7a0a0c733 (patch) | |
tree | 54bc90dfaf21e8de285bc5271fcb4395c9cfa7a6 /core | |
parent | d395dbae2647335b393ee8d473c5158f0712ba49 (diff) | |
parent | ccf05aeb9a6fec3382398dd41cb1334bef3740e3 (diff) |
Merge pull request #53034 from CaptainProton42/fix-multimesh-populate-surface
Diffstat (limited to 'core')
-rw-r--r-- | core/math/face3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/face3.cpp b/core/math/face3.cpp index 9af3f868d2..045ab67ce8 100644 --- a/core/math/face3.cpp +++ b/core/math/face3.cpp @@ -151,8 +151,8 @@ Face3::Side Face3::get_side_of(const Face3 &p_face, ClockDirection p_clock_dir) } Vector3 Face3::get_random_point_inside() const { - real_t a = Math::random(0, 1); - real_t b = Math::random(0, 1); + real_t a = Math::random(0.0, 1.0); + real_t b = Math::random(0.0, 1.0); if (a > b) { SWAP(a, b); } |