Fix #32463, Cycles crashing. The particle system sync_recalc part was checking object data, which can be NULL and doesn't actually say anything about particles, removed.

This commit is contained in:
Lukas Toenne 2012-09-01 11:30:22 +00:00
parent cc835e47b0
commit ff9b071fbd

@ -97,7 +97,7 @@ bool BlenderSync::sync_recalc()
light_map.set_recalc(*b_ob);
}
if(b_ob->is_updated_data() || b_ob->data().is_updated()) {
if(b_ob->is_updated_data()) {
BL::Object::particle_systems_iterator b_psys;
for (b_ob->particle_systems.begin(b_psys); b_psys != b_ob->particle_systems.end(); ++b_psys)
particle_system_map.set_recalc(*b_ob);