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:
authorCampbell Barton <ideasman42@gmail.com>2018-03-19 21:03:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-03-19 21:04:50 +0300
commit254bb922e8654a85b3c3e2c715cb4a078f832bcb (patch)
tree2b6a0446a99186ff139742516daf06e9b734d11b /source/blender/editors/physics/particle_object.c
parent402486ea7bc52f669bc02a00c5e2703590361409 (diff)
Cleanup: avoid passing bContext to particle API
Also add EvaluationContext to PEData
Diffstat (limited to 'source/blender/editors/physics/particle_object.c')
-rw-r--r--source/blender/editors/physics/particle_object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index c8755ea0ed2..cbdb6e4592c 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -595,7 +595,7 @@ static void disconnect_hair(
if (ELEM(pset->brushtype, PE_BRUSH_ADD, PE_BRUSH_PUFF))
pset->brushtype = PE_BRUSH_NONE;
- PE_update_object(eval_ctx, scene, view_layer, ob, 0);
+ PE_update_object(eval_ctx, scene, ob, 0);
}
static int disconnect_hair_exec(bContext *C, wmOperator *op)
@@ -832,7 +832,7 @@ static bool remap_hair_emitter(
psys_free_path_cache(target_psys, target_edit);
- PE_update_object(eval_ctx, scene, view_layer, target_ob, 0);
+ PE_update_object(eval_ctx, scene, target_ob, 0);
return true;
}
@@ -964,7 +964,7 @@ static void copy_particle_edit(
recalc_lengths(edit);
recalc_emitter_field(ob, psys);
- PE_update_object(eval_ctx, scene, view_layer, ob, true);
+ PE_update_object(eval_ctx, scene, ob, true);
PTCacheUndo_clear(edit);
PE_undo_push(scene, view_layer, "Original");