Cycles: Prevent crash in special cases when object has less slots than mesh
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 23 Sep 2016 13:57:39 +0000 (15:57 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 23 Sep 2016 13:57:39 +0000 (15:57 +0200)
commit4e3578f47082c3b28be4b0065fc97e4916046d8f
treea8ec25c94d5f8ab4d3535c9b83e2b5a93bf064f8
parent06b51c64ad7cbf73dc0bc9c31060ffff0b778898
Cycles: Prevent crash in special cases when object has less slots than mesh

This is something what was guaranteed in give_current_material(), just
copied some range checking logic from there.

Not sure what would be a proper fix here tho.
source/blender/blenkernel/intern/mesh.c