Bugfix T42253: End frame for armature ghosting "in range" is not displayed

This commit is contained in:
Joshua Leung 2014-11-16 18:12:35 +13:00
parent c6ab67bffc
commit 65d771dcaf
Notes: blender-bot 2023-02-14 09:56:36 +01:00
Referenced by issue #42253, Ghosting is one frame short
1 changed files with 1 additions and 1 deletions

View File

@ -2396,7 +2396,7 @@ static void draw_ghost_poses_range(Scene *scene, View3D *v3d, ARegion *ar, Base
if (v3d->zbuf) glDisable(GL_DEPTH_TEST);
/* draw from first frame of range to last */
for (CFRA = (int)start; CFRA < end; CFRA += (int)stepsize) {
for (CFRA = (int)start; CFRA <= end; CFRA += (int)stepsize) {
colfac = (end - (float)CFRA) / range;
UI_ThemeColorShadeAlpha(TH_WIRE, 0, -128 - (int)(120.0f * sqrtf(colfac)));