diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-04-19 17:06:08 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-04-19 17:06:08 +0400 |
commit | b282655088817a055cac73385d1bec4efa75d387 (patch) | |
tree | aa76bebfe2cfa780cf6e8773f241fa3f01955770 | |
parent | aa00bbe484f832f5001883f24fa5dee262baa888 (diff) |
Fix for [#27008] Replacing particle hair with group objects - viewport does not match renderoutput.
* Object size was determined from the first and second last cache key by accident, when it should have been first and last cache keys that were used.
-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 662929f95fc..52b8cc194f7 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -4371,7 +4371,7 @@ void psys_get_dupli_path_transform(ParticleSimulationData *sim, ParticleData *pa float loc[3], nor[3], vec[3], side[3], len, obrotmat[4][4], qmat[4][4]; float xvec[3] = {-1.0, 0.0, 0.0}, q[4], nmat[3][3]; - sub_v3_v3v3(vec, (cache+cache->steps-1)->co, cache->co); + sub_v3_v3v3(vec, (cache+cache->steps)->co, cache->co); len= normalize_v3(vec); if(psys->part->rotmode) { |