Fix T45709: Cached Hair system is not seen in 2.75

Don't force re-distribution of cached particle systems, this doesn't
cause actual evaluation of particles and there was a reason why particles
are baked actually..
This commit is contained in:
Sergey Sharybin 2015-08-26 14:27:44 +02:00
parent 3dd16946aa
commit 2f766f8ad2
Notes: blender-bot 2023-02-14 11:18:07 +01:00
Referenced by issue #45709, Cached Hair system is not seen in 2.75
1 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,7 @@
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "DNA_screen_types.h"
#include "DNA_object_force.h"
#include "DNA_object_types.h"
#include "DNA_mesh_types.h"
#include "DNA_modifier_types.h"
@ -654,7 +655,9 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
ParticleSystem *psys;
for (ob = main->object.first; ob; ob = ob->id.next) {
for (psys = ob->particlesystem.first; psys; psys = psys->next) {
psys->recalc |= PSYS_RECALC_RESET;
if ((psys->pointcache->flag & PTCACHE_BAKED) == 0) {
psys->recalc |= PSYS_RECALC_RESET;
}
}
}
}