[Bf-blender-cvs] [e5560e8d567] blender2.8: Particle edit: Edit path invalidate should trigger particle system path re-cache

Sergey Sharybin noreply at git.blender.org
Tue May 15 17:21:34 CEST 2018


Commit: e5560e8d56774bc7502f9cf3b304ef27d16298eb
Author: Sergey Sharybin
Date:   Tue May 15 12:32:01 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe5560e8d56774bc7502f9cf3b304ef27d16298eb

Particle edit: Edit path invalidate should trigger particle system path re-cache

Don't try to bend existing design, just follow it. It's not nice, but is
working. Just bring it back, then repeal and replace system as a whole,
making sure every bit is working according to a design.

Such quick patches only trying to make local sense of a system, defeating
it's design.

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

M	source/blender/blenkernel/intern/particle.c

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

diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c
index e24b6b3903b..37607de9c36 100644
--- a/source/blender/blenkernel/intern/particle.c
+++ b/source/blender/blenkernel/intern/particle.c
@@ -2606,7 +2606,7 @@ void psys_cache_edit_paths(Depsgraph *depsgraph, Scene *scene, Object *ob, PTCac
 
 	if (!cache || edit->totpoint != edit->totcached) {
 		/* clear out old and create new empty path cache */
-		psys_free_path_cache(NULL, edit);
+		psys_free_path_cache(edit->psys, edit);
 		cache = edit->pathcache = psys_alloc_path_cache_buffers(&edit->pathcachebufs, totpart, segments + 1);
 
 		/* set flag for update (child particles check this too) */



More information about the Bf-blender-cvs mailing list