Fix T49405: Crash when baking with adaptive subdivision
authorMai Lavelle <mai.lavelle@gmail.com>
Wed, 25 Jan 2017 05:35:20 +0000 (00:35 -0500)
committerMai Lavelle <mai.lavelle@gmail.com>
Wed, 25 Jan 2017 05:40:45 +0000 (00:40 -0500)
commita7d5cabd4e86b7b750fadbd087b97f900009fb09
treef26102c8f894736559012109393e51bf99d4272e
parent57f937ad5a263195d241ceb67bf9ca2d04b80fd7
Fix T49405: Crash when baking with adaptive subdivision

Blenders baking system currently doesn't support the topology used by
adaptive subdivision and primitive ids will be wrong or out of range
leading to crashes. Updating the baking system to support other
topologies would be a bit involved, so for now we simply disable
subdivision while baking to avoid crashes.
intern/cycles/blender/blender_mesh.cpp