Fix crash in some cases when deleting particle systems.
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 15 Sep 2016 09:50:56 +0000 (11:50 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 15 Sep 2016 09:50:56 +0000 (11:50 +0200)
commita8ed9144a38980cb4e9a28af70b3b3b34a48e92f
treee6c2fbb94599fbdd48b9ffb076fdfeee7e3c2882
parenta2a5ae5b54713d59287aebf189428270feddbb23
Fix crash in some cases when deleting particle systems.

Those 'never null' ID pointers are really a PITA to handle... luckily we don't have much of those around!

Found by Sybren, thanks.

Should be backported to 2.78.
source/blender/blenkernel/BKE_library_remap.h
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/particle_system.c