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.
This commit is contained in:
Janne Karhu 2011-04-19 13:06:08 +00:00
parent aa00bbe484
commit b282655088

@ -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 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]; 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); len= normalize_v3(vec);
if(psys->part->rotmode) { if(psys->part->rotmode) {