Fix (unreported) potential crash: ParticleSystem->part shall never be NULL.

This commit is contained in:
Bastien Montagne
2015-11-11 11:46:25 +01:00
parent 69674f3875
commit a9df76b167

View File

@@ -4216,7 +4216,7 @@ void BKE_particlesystem_id_loop(ParticleSystem *psys, ParticleSystemIDFunc func,
{
ParticleTarget *pt;
func(psys, (ID **)&psys->part, userdata, IDWALK_NOP);
func(psys, (ID **)&psys->part, userdata, IDWALK_NEVER_NULL);
func(psys, (ID **)&psys->target_ob, userdata, IDWALK_NOP);
func(psys, (ID **)&psys->parent, userdata, IDWALK_NOP);