Fix object copying not ensuring validity of material arrays.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 14 Aug 2018 11:35:51 +0000 (13:35 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 14 Aug 2018 12:06:42 +0000 (14:06 +0200)
commit932251caea88b87bd65dd5c453dd3133457ffb1b
tree386c75ffdfc1168ebc970692195ba50229ec8629
parent73234a9122666035592a8733f0df73beaf2e2a2d
Fix object copying not ensuring validity of material arrays.

Related to T56363, this is not fixing the root of the bug, but ID
copying should always be a good occasion to ensure sanity of our data
(and error checking is always better than a crash!).
source/blender/blenkernel/intern/object.c