From f839e2d41a3ff7b2c3a5bc11274e624ee9ea6a1b Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 8 Mar 2012 10:53:40 +0000 Subject: Partial Bugfix [#30097] : Current frame indicator on Motion Paths drawn incorrectly When the current frame occurs outside the current visible range a given motion path, the point lookup was seeking past the ends of the path's point cache, causing sporadic flickering of current frame indicator at 0,0,0. --- source/blender/editors/space_view3d/drawanimviz.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_view3d/drawanimviz.c b/source/blender/editors/space_view3d/drawanimviz.c index 922102e3921..e15252056cc 100644 --- a/source/blender/editors/space_view3d/drawanimviz.c +++ b/source/blender/editors/space_view3d/drawanimviz.c @@ -195,7 +195,9 @@ void draw_motion_path_instance(Scene *scene, /* Draw big green dot where the current frame is */ // NOTE: only do this when drawing keyframes for now... - if (avs->path_viewflag & MOTIONPATH_VIEW_KFRAS) { + if ((avs->path_viewflag & MOTIONPATH_VIEW_KFRAS) && + (sfra < CFRA) && (CFRA <= efra)) + { UI_ThemeColor(TH_CFRAME); glPointSize(6.0f); -- cgit v1.2.3