From 1662c514c01f0b85f67e8d52bebc6abce47cb8b4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 20 Mar 2018 08:03:10 +0100 Subject: Cleanup: unused variables Missed in own recent changes. --- source/blender/editors/space_view3d/drawobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_view3d/drawobject.c') diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index adb2d475464..ea92f18f714 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -6619,7 +6619,7 @@ static void draw_new_particle_system( } static void draw_update_ptcache_edit( - const EvaluationContext *eval_ctx, Scene *scene, ViewLayer *view_layer, Object *ob, PTCacheEdit *edit) + const EvaluationContext *eval_ctx, Scene *scene, Object *ob, PTCacheEdit *edit) { if (edit->psys && edit->psys->flag & PSYS_HAIR_UPDATED) PE_update_object(eval_ctx, scene, ob, 0); @@ -8976,7 +8976,7 @@ afterdraw: if (eval_ctx->object_mode & OB_MODE_PARTICLE_EDIT && is_obact) { PTCacheEdit *edit = PE_create_current(eval_ctx, scene, ob); if (edit && edit->psys == psys) - draw_update_ptcache_edit(eval_ctx, scene, view_layer, ob, edit); + draw_update_ptcache_edit(eval_ctx, scene, ob, edit); } draw_new_particle_system(eval_ctx, scene, v3d, rv3d, base, psys, dt, dflag); @@ -8998,7 +8998,7 @@ afterdraw: PTCacheEdit *edit = PE_create_current(eval_ctx, scene, ob); if (edit) { gpuLoadMatrix(rv3d->viewmat); - draw_update_ptcache_edit(eval_ctx, scene, view_layer, ob, edit); + draw_update_ptcache_edit(eval_ctx, scene, ob, edit); draw_ptcache_edit(scene, v3d, edit); gpuMultMatrix(ob->obmat); } -- cgit v1.2.3