Fix #33916: 2.65a regression: particles duplicating objects with halo - crash
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 18 Jan 2013 12:29:18 +0000 (12:29 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 18 Jan 2013 12:29:18 +0000 (12:29 +0000)
commita08a3ab931f334dcaa3d32fe80d848e8dd1a315b
treeebfabc34dc6414d3e6c7f65b664df2ea4ed8bf5a
parent9660ba6c2b1093470d189947286adda483b8faff
Fix #33916: 2.65a regression: particles duplicating objects with halo - crash

allow_render_dupli_instance used to pass zero-based index to give_current_material
which is wrong.

Before rev53332 it wasn't so much visible because give_current_material used
to clamp index internally. But that was wrong behavior here anyway, and why
nobody noticed this for so long? :)
source/blender/render/intern/source/convertblender.c