[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44737] trunk/blender/source/blender/ editors/space_view3d/drawanimviz.c: Partial Bugfix [#30097] : Current frame indicator on Motion Paths drawn

Joshua Leung aligorith at gmail.com
Thu Mar 8 11:53:41 CET 2012


Revision: 44737
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44737
Author:   aligorith
Date:     2012-03-08 10:53:40 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawanimviz.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawanimviz.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawanimviz.c	2012-03-08 10:52:30 UTC (rev 44736)
+++ trunk/blender/source/blender/editors/space_view3d/drawanimviz.c	2012-03-08 10:53:40 UTC (rev 44737)
@@ -195,7 +195,9 @@
 	
 	/* 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);
 		




More information about the Bf-blender-cvs mailing list