Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-05-04 13:28:05 +0300
committerHans Goudey <h.goudey@me.com>2022-05-04 13:28:05 +0300
commitcaeea212cffbf352df2d27e67690aaed4e4cd336 (patch)
tree87f0e129cbbe64ba20645bf8141bcfe5584b9cb7 /source
parent14d845192a8b967faed42c4e6e9cea1622f2bc01 (diff)
parent302584bd6eef7ff4e37d31974302f2d6ce2174cb (diff)
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_curves.hh2
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)