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
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-07-20 21:54:01 +0300
committerHans Goudey <h.goudey@me.com>2021-07-20 21:54:01 +0300
commitaeee7f390d935ca913dfa686a1ded7c3d2d57681 (patch)
treeb9fa3d57f57be7c35c1af064e87115d732b61153
parentcf28398471c84260833dc9c1774ed3059de18ad4 (diff)
Fix T89993: Failed assert drawing single point cyclic splines
The same check used for the curve to mesh node.
-rw-r--r--source/blender/draw/intern/draw_cache_impl_curve.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curve.cc b/source/blender/draw/intern/draw_cache_impl_curve.cc
index 51bd4c535cd..1efe0c080be 100644
--- a/source/blender/draw/intern/draw_cache_impl_curve.cc
+++ b/source/blender/draw/intern/draw_cache_impl_curve.cc
@@ -663,7 +663,7 @@ static void curve_create_curves_lines(CurveRenderData *rdata, GPUIndexBuf *ibo_c
for (const int i_spline : splines.index_range()) {
const int eval_size = splines[i_spline]->evaluated_points_size();
- if (splines[i_spline]->is_cyclic()) {
+ if (splines[i_spline]->is_cyclic() && splines[i_spline]->evaluated_edges_size() > 1) {
GPU_indexbuf_add_generic_vert(&elb, offsets[i_spline] + eval_size - 1);
}
for (const int i_point : IndexRange(eval_size)) {