Possible fix for [#23334] Particle Mode - Weight editing crashes if large number of particles OR you have added in Particle Mode

This commit is contained in:
Janne Karhu 2010-09-02 09:11:40 +00:00
parent 5db18d474f
commit 2e61c4be9b

@ -3172,7 +3172,7 @@ void psys_cache_edit_paths(Scene *scene, Object *ob, PTCacheEdit *edit, float cf
/* at the moment this is only used for weight painting.
* will need to move out of this check if its used elsewhere. */
t2 = birthtime + ((float)(k+1)/(float)steps) * (dietime - birthtime);
t2 = birthtime + ((float)k/(float)steps) * (dietime - birthtime);
while (pind.hkey[1]->time < t2) pind.hkey[1]++;
pind.hkey[0] = pind.hkey[1] - 1;