diff options
author | Alex Fraser <alex@phatcore.com> | 2011-09-25 15:51:28 +0400 |
---|---|---|
committer | Alex Fraser <alex@phatcore.com> | 2011-09-25 15:51:28 +0400 |
commit | 558b646216feaa43abf44eb332d2449c68bf1b39 (patch) | |
tree | fd723cb9ceeef9bc715f08ab9ae62a8698f54a0d /source/blender/blenloader | |
parent | 9931c9442e16867ac2117a60b5a41839df76a454 (diff) |
Committing patch #27442: Adaptive time step for fluid particles. The number of
subframes can now be altered automatically while an SPH (fluid particle)
simulation is running.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index ecd3c9b5dad..d62f6657e41 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -12066,7 +12066,14 @@ static void do_versions(FileData *fd, Library *lib, Main *main) /* put compatibility code here until next subversion bump */ { - + { + /* Adaptive time step for particle systems */ + ParticleSettings *part; + for (part = main->particle.first; part; part = part->id.next) { + part->courant_target = 0.2; + part->time_flag &= ~PART_TIME_AUTOSF; + } + } } //set defaults for obstacle avoidance, recast data |