diff options
Diffstat (limited to 'source/blender/blenkernel/intern/dynamicpaint.c')
-rw-r--r-- | source/blender/blenkernel/intern/dynamicpaint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c index 4c78c88d168..a704e199007 100644 --- a/source/blender/blenkernel/intern/dynamicpaint.c +++ b/source/blender/blenkernel/intern/dynamicpaint.c @@ -2429,6 +2429,8 @@ static float dist_squared_to_looptri_uv_edges(const MLoopTri *mlooptri, int tri_index, const float point[2]) { + BLI_assert(tri_index >= 0); + float min_distance = FLT_MAX; for (int i = 0; i < 3; i++) { |