Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2011-04-19 17:06:08 +0400
committerJanne Karhu <jhkarh@gmail.com>2011-04-19 17:06:08 +0400
commitb282655088817a055cac73385d1bec4efa75d387 (patch)
treeaa76bebfe2cfa780cf6e8773f241fa3f01955770 /source
parentaa00bbe484f832f5001883f24fa5dee262baa888 (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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/particle.c2
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) {