diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_curves.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh index ca92ad7480f..c125c347071 100644 --- a/source/blender/blenkernel/BKE_curves.hh +++ b/source/blender/blenkernel/BKE_curves.hh @@ -419,7 +419,7 @@ namespace curves { inline int curve_segment_size(const int points_num, const bool cyclic) { BLI_assert(points_num > 0); - return cyclic ? points_num : points_num - 1; + return (cyclic && points_num > 1) ? points_num : points_num - 1; } inline float2 encode_surface_bary_coord(const float3 &v) |