Add an assert to BKE_icon_changed() that we are actually dealing with ID icon.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 16 Mar 2018 16:17:19 +0000 (17:17 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 16 Mar 2018 16:17:19 +0000 (17:17 +0100)
commit5389964eea27c4d0129171ee69129210ee522bc3
treea0cf3a3b6308289186a5ca7f4d7234734f4530c0
parent1a71d5ae85c8080705fc88188b6ef78aad29efdd
Add an assert to BKE_icon_changed() that we are actually dealing with ID icon.

Otherwise, ID->obj is an opaque pointer, wrong usage here could lead to
a vast amount of bad things.
source/blender/blenkernel/intern/icons.c