Fix mistake in recent patch

This commit is contained in:
Campbell Barton 2014-05-17 14:36:05 +10:00
parent 92a380d0b2
commit 5ed449dabb
Notes: blender-bot 2023-02-14 10:37:52 +01:00
Referenced by issue #40232, Crash rendering a beveled curve
1 changed files with 1 additions and 1 deletions

View File

@ -1380,7 +1380,7 @@ static void calc_bevfac_spline_mapping(BevList *bl, float bevfac, float spline_l
static void calc_bevfac_mapping(Curve *cu, BevList *bl, short splinetype, const bool use_render_resolution,
int *r_start, float *r_firstblend, int *r_steps, float *r_lastblend)
{
const int resolu = (use_render_resolution) ? cu->resolu_ren : cu->resolu;
const int resolu = (use_render_resolution && (cu->resolu_ren != 0)) ? cu->resolu_ren : cu->resolu;
const int segcount = (splinetype == CU_POLY) ? bl->nr : (bl->nr / resolu);
BevPoint *bevp, *bevl;