mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-26 10:13:12 +08:00
truncation warning fix
This commit is contained in:
parent
81f07c69e5
commit
6848ed29f1
@ -966,7 +966,7 @@ void pick_random_seam_point(const std::vector<SeamCandidate> &perimeter_points,
|
||||
std::vector<Viable> viables;
|
||||
|
||||
const Vec3f pseudornd_seed = perimeter_points[viable_example_index].position;
|
||||
float rand = std::abs(sin(pseudornd_seed.dot(Vec3f(12.9898,78.233, 133.3333))) * 43758.5453);
|
||||
float rand = std::abs(sin(pseudornd_seed.dot(Vec3f(12.9898f,78.233f, 133.3333f))) * 43758.5453f);
|
||||
rand = rand - (int) rand;
|
||||
|
||||
for (size_t index = start_index; index < end_index; ++index) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user