diff options
-rw-r--r-- | source/blender/draw/intern/draw_anim_viz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_anim_viz.c b/source/blender/draw/intern/draw_anim_viz.c index 48f457b974c..ffc921e2081 100644 --- a/source/blender/draw/intern/draw_anim_viz.c +++ b/source/blender/draw/intern/draw_anim_viz.c @@ -538,7 +538,7 @@ static void MPATH_cache_init(void *vedata) } } -static void MPATH_cache_motion_path(MPATH_PassList *psl, Scene *scene, +static void MPATH_cache_motion_path(MPATH_PassList *psl, Object *ob, bPoseChannel *pchan, bAnimVizSettings *avs, bMotionPath *mpath) { @@ -682,14 +682,14 @@ static void MPATH_cache_populate(void *vedata, Object *ob) if (DRW_pose_mode_armature(ob, draw_ctx->obact)) { for (bPoseChannel *pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) { if (pchan->mpath) { - MPATH_cache_motion_path(psl, draw_ctx->scene, ob, pchan, &ob->pose->avs, pchan->mpath); + MPATH_cache_motion_path(psl, ob, pchan, &ob->pose->avs, pchan->mpath); } } } } else { if (ob->mpath) { - MPATH_cache_motion_path(psl, draw_ctx->scene, ob, NULL, &ob->avs, ob->mpath); + MPATH_cache_motion_path(psl, ob, NULL, &ob->avs, ob->mpath); } } } |