Matrix cache for particles was read out of bounds. Fix found by Ken Hughes.
This commit is contained in:
Ton Roosendaal
2007-03-08 12:22:50 +00:00
parent aec81d8b4b
commit e3fc193641

View File

@@ -2017,7 +2017,7 @@ void build_particle_system(Object *ob)
cur= (int)floor(pa->time) + 1 ; /* + 1 has a reason: (obmat/prevobmat) otherwise comet-tails start too late */
if(cur <= paf_end) mcnow= mcache + cur - paf_sta;
else mcnow= mcache + paf_end - paf_sta + 1;
else mcnow= mcache + paf_end - paf_sta;
if(cur > paf_sta) mcprev= mcnow-1;
else mcprev= mcache;