Particle edit: Edit path invalidate should trigger particle system path re-cache
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 May 2018 10:32:01 +0000 (12:32 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 May 2018 15:20:02 +0000 (17:20 +0200)
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.

source/blender/blenkernel/intern/particle.c

index e24b6b3903bcd9e85c087f87647fcda361765510..37607de9c3601419748b4c34dfc86057fd9ffb3f 100644 (file)
@@ -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) */