Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-03-08 14:53:40 +0400
committerJoshua Leung <aligorith@gmail.com>2012-03-08 14:53:40 +0400
commitf839e2d41a3ff7b2c3a5bc11274e624ee9ea6a1b (patch)
tree0896ad7bce4ad26f793e1f165a562da105a20336
parent41bed8e04c114a55ed4f039c3b517b8d147434d9 (diff)
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.
-rw-r--r--source/blender/editors/space_view3d/drawanimviz.c4
1 files changed, 3 insertions, 1 deletions
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);