Alembic import: fixed mesh corruption when changing topology
authorSybren A. Stüvel <sybren@stuvel.eu>
Sun, 29 Oct 2017 12:55:42 +0000 (13:55 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Sun, 29 Oct 2017 13:36:10 +0000 (14:36 +0100)
commit0012d54a70ac1dcd83531a32d1fe3ab017034e4b
treed154aed0f4be4cdded2d8905621d734628df9493
parentab2d1f61a8e94650b8cb20a588b5c9ce27c13431
Alembic import: fixed mesh corruption when changing topology

When the mesh changed topology but kept the vertex count the same, it would
result in a corrupt mesh. By checking the face & loop counts too, this has
become less likely.

I've checked IPolyMeshSchema::isConstant(), but it returns true even when
we see that the mesh changed topology.
source/blender/alembic/intern/abc_mesh.cc