diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2019-11-05 19:44:37 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-11-05 19:44:37 +0300 |
commit | 9ea661f47ad0b7f1686e0ad271043f756781dd29 (patch) | |
tree | 63390514a6a2f0939a064ee5d46c77cee0ff1414 /source/blender/alembic | |
parent | 9a9e93e8043b515360eacd71c20b193c9e15204d (diff) |
Alembic import: fix incorrect 'topology changed' error
When importing subdivision surfaces a 'Topology Changed' error was shown
even though the topology didn't change at all. The code was comparing to
`totpoly` where `totloop` should have been used.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_mesh.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/abc_mesh.cc b/source/blender/alembic/intern/abc_mesh.cc index 651f32e6ab0..61e8771e845 100644 --- a/source/blender/alembic/intern/abc_mesh.cc +++ b/source/blender/alembic/intern/abc_mesh.cc @@ -1495,7 +1495,7 @@ Mesh *AbcSubDReader::read_mesh(Mesh *existing_mesh, * This prevents crash from T49813. * TODO(kevin): perhaps find a better way to do this? */ if (face_counts->size() != existing_mesh->totpoly || - face_indices->size() != existing_mesh->totpoly) { + face_indices->size() != existing_mesh->totloop) { settings.read_flag = MOD_MESHSEQ_READ_VERT; if (err_str) { |