[Bf-blender-cvs] [f25be56bc78] blender2.8: Particle edit: Use proper batch cache flag
Sergey Sharybin
noreply at git.blender.org
Tue May 15 17:21:26 CEST 2018
Commit: f25be56bc785b76c9ee19c8e67e76c7c21ea117b
Author: Sergey Sharybin
Date: Tue May 15 11:23:27 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBf25be56bc785b76c9ee19c8e67e76c7c21ea117b
Particle edit: Use proper batch cache flag
Also tag batch for invalidation when using cut brush.
===================================================================
M source/blender/editors/physics/particle_edit.c
===================================================================
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 5aabebe44a0..3ade4b90ab1 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4002,7 +4002,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
if (edit->psys) {
WM_event_add_notifier(C, NC_OBJECT|ND_PARTICLE|NA_EDITED, ob);
- BKE_particle_batch_cache_dirty(edit->psys, BKE_MESH_BATCH_DIRTY_ALL);
+ BKE_particle_batch_cache_dirty(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
}
else {
@@ -4267,6 +4267,7 @@ static int shape_cut_exec(bContext *C, wmOperator *UNUSED(op))
if (edit->psys) {
WM_event_add_notifier(C, NC_OBJECT|ND_PARTICLE|NA_EDITED, ob);
+ BKE_particle_batch_cache_dirty(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
}
else {
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
More information about the Bf-blender-cvs
mailing list