From 254bb922e8654a85b3c3e2c715cb4a078f832bcb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 19 Mar 2018 19:03:18 +0100 Subject: Cleanup: avoid passing bContext to particle API Also add EvaluationContext to PEData --- source/blender/editors/space_view3d/drawobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 896b24d3086..adb2d475464 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -6622,7 +6622,7 @@ static void draw_update_ptcache_edit( const EvaluationContext *eval_ctx, Scene *scene, ViewLayer *view_layer, Object *ob, PTCacheEdit *edit) { if (edit->psys && edit->psys->flag & PSYS_HAIR_UPDATED) - PE_update_object(eval_ctx, scene, view_layer, ob, 0); + PE_update_object(eval_ctx, scene, ob, 0); /* create path and child path cache if it doesn't exist already */ if (edit->pathcache == NULL) { -- cgit v1.2.3