diff options
-rw-r--r-- | source/blender/blenkernel/intern/displist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c index e5d7f03aae3..b50a44b92c2 100644 --- a/source/blender/blenkernel/intern/displist.c +++ b/source/blender/blenkernel/intern/displist.c @@ -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; |