Alembic export: support simple child hairs (Fix T51144)
authorSybren A. Stüvel <sybren@stuvel.eu>
Wed, 26 Apr 2017 13:31:03 +0000 (15:31 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Wed, 26 Apr 2017 13:31:03 +0000 (15:31 +0200)
commit6ed15c5a41130b55cb57a43a8a9470a91d38c3d5
tree723168c780abcfa4a455fb384a682b2d43246422
parent51e3a184ea329cc01c6a5d632895a82d8a4a1bec
Alembic export: support simple child hairs (Fix T51144)

Simple child hairs don't have a face index number assigned, so the
call to dm->getTessFaceData(dm, num, CD_MFACE) would cause a crash. To
work around this, UV and normal vectors are copied from the parent
hair.

I've also removed an unnecessary call to dm->getTessFaceArray(dm);

Reviewers: kevindietrich

Differential Revision: https://developer.blender.org/D2638
source/blender/alembic/intern/abc_hair.cc