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.
This commit is contained in:
Joshua Leung
2012-03-08 10:53:40 +00:00
parent 41bed8e04c
commit f839e2d41a

View File

@@ -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);