diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-02 13:11:40 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-02 13:11:40 +0400 |
commit | 2e61c4be9b7d6ec49ac1cb4d1cf4716581fdc969 (patch) | |
tree | 9355a7a7dd5df64e56c0b9c4acd0d8588b31405f /source | |
parent | 5db18d474fa2c8b7176806368e5bc0aa68fef325 (diff) |
Possible fix for [#23334] Particle Mode - Weight editing crashes if large number of particles OR you have added in Particle Mode
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index 45662bfbd42..a27097f836c 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -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; |