diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-24 14:10:45 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-24 14:10:45 +0300 |
commit | 12b805148f754ec95eb2b236fbd28fbb0153bb3c (patch) | |
tree | f5599aeac593d2e4bb6c1d4ca602f22022618c0a /source | |
parent | 32ca8e58a374dc28df0b0a744e407a8ebf58e56e (diff) |
Cleanup: quiet asan overflow warning
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc index 553b8ea364f..d9878d54353 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc @@ -379,7 +379,7 @@ BLI_NOINLINE static void compute_special_attributes(const Mesh &mesh, const float3 v1_pos = mesh.mvert[v1_index].co; const float3 v2_pos = mesh.mvert[v2_index].co; - ids[i] = (int)(bary_coord.hash()) + looptri_index; + ids[i] = (int)(bary_coord.hash() + (uint64_t)looptri_index); normal_tri_v3(normals[i], v0_pos, v1_pos, v2_pos); rotations[i] = normal_to_euler_rotation(normals[i]); } |