[Bf-blender-cvs] [258c5f2c0f4] blender2.8: Particle edit: Avoid depsgraph tag from draw code

Sergey Sharybin noreply at git.blender.org
Mon May 14 10:16:52 CEST 2018


Commit: 258c5f2c0f4067b50dcae372c67186fd87a976a8
Author: Sergey Sharybin
Date:   Mon May 14 10:15:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB258c5f2c0f4067b50dcae372c67186fd87a976a8

Particle edit: Avoid depsgraph tag from draw code

Some of the function was intended to be used form drawing as well,
for until that is changed in design we can not use dependency graph
tags form it.

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

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 3dadd72dbf6..0e03b0eeb84 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4002,6 +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);
 		}
 		else {
 			DEG_id_tag_update(&ob->id, OB_RECALC_DATA);



More information about the Bf-blender-cvs mailing list