[Bf-blender-cvs] [fea05c695a0] tmp-b28-motionpath-drawing: Cleanup: Fix compiler warning

Joshua Leung noreply at git.blender.org
Fri Jun 1 14:01:47 CEST 2018


Commit: fea05c695a05c6a8f60406e7dc9b5eebd2af5401
Author: Joshua Leung
Date:   Fri Jun 1 14:00:48 2018 +0200
Branches: tmp-b28-motionpath-drawing
https://developer.blender.org/rBfea05c695a05c6a8f60406e7dc9b5eebd2af5401

Cleanup: Fix compiler warning

===================================================================

M	source/blender/draw/intern/draw_anim_viz.c

===================================================================

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



More information about the Bf-blender-cvs mailing list