Blender Git Commit Log

Git Commits -> Revision 06e58f5

Revision 06e58f5 by Alexander Gavrilov (fix-48991)
August 1, 2016, 18:45 (GMT)
Fix T48991: some particles emitted at a distance from object.

The cause seems to be that despite dt_frac being computed as
1/(subframes+1) with integer subframes value, it doesn't always
add up to exactly 1.0 due to precision limitations. If the sum
is similar to 1.00000???, the last subframe is skipped, and all
particles that were supposed to be emitted in that interval are
emitted next frame, with the code working incorrectly due to
skewed time range.

To fix, separate the code from the dynamic timestep feature that
adjusts the last subframe length into a separate function, and
use it even when dynamic timestep is disabled.

Commit Details:

Full Hash: 06e58f59a70b09f060fedad781dfc3731d6e052c
Parent Commit: 138362a
Lines Changed: +7, -2

1 Modified Path:

/source/blender/blenkernel/intern/particle_system.c (+7, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021