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:
authorGermano <germano.costa@ig.com.br>2018-01-03 04:31:28 +0300
committerGermano <germano.costa@ig.com.br>2018-01-03 04:31:28 +0300
commit2a57a464410e7089fe31e5dcdc8415408ed4e5f3 (patch)
treef7a2ea844ebb84a0da2b55f8dd52b8bd1a091d67 /source/blender/draw/intern/draw_cache_impl_curve.c
parent6c46dff50d536b241376a0d72dbc4253f1d8ff05 (diff)
Fix crash when you change the curve resolution in Edit Mode of the Blender Render engine
Same problem as previous commit, but now in `drawobject.c`. Also added a comment to the equivalent line in `draw_cache_imp_curve.c`.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_curve.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_curve.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curve.c b/source/blender/draw/intern/draw_cache_impl_curve.c
index d4fd4982328..a6dc52f66c9 100644
--- a/source/blender/draw/intern/draw_cache_impl_curve.c
+++ b/source/blender/draw/intern/draw_cache_impl_curve.c
@@ -126,6 +126,7 @@ static int curve_render_normal_len_get(const ListBase *lb, const CurveCache *ob_
nr -= skip;
}
#else
+ /* Same as loop above */
normal_len += (nr / (skip + 1)) + ((nr % (skip + 1)) != 0);
#endif
}