diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-08-19 13:04:36 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-08-19 13:11:48 +0300 |
commit | c5d33070fdb70e27853889cc0b9135926d868de2 (patch) | |
tree | fa9e005f01cab87ca34ad3fda2fcae0873ff0a58 /source/blender/editors/sculpt_paint/sculpt_filter_mesh.c | |
parent | e9e493977c0064e47eff92b1d4a25de52f8b8abb (diff) |
Cleanup: compiler warnings
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_filter_mesh.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_filter_mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c index abfbe035928..56e70a8d47a 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c +++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c @@ -383,7 +383,7 @@ static void mesh_filter_task_cb(void *__restrict userdata, const uint *hash_co = (const uint *)orig_co; const uint hash = BLI_hash_int_2d(hash_co[0], hash_co[1]) ^ BLI_hash_int_2d(hash_co[2], ss->filter_cache->random_seed); - mul_v3_fl(normal, hash * (1.0f / 0xFFFFFFFF) - 0.5f); + mul_v3_fl(normal, hash * (1.0f / (float)0xFFFFFFFF) - 0.5f); mul_v3_v3fl(disp, normal, fade); break; } |