[Bf-blender-cvs] [9ea661f47ad] blender-v2.81-release: Alembic import: fix incorrect 'topology changed' error

Sybren A. Stüvel noreply at git.blender.org
Tue Nov 5 17:44:57 CET 2019


Commit: 9ea661f47ad0b7f1686e0ad271043f756781dd29
Author: Sybren A. Stüvel
Date:   Tue Nov 5 17:44:37 2019 +0100
Branches: blender-v2.81-release
https://developer.blender.org/rB9ea661f47ad0b7f1686e0ad271043f756781dd29

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.

===================================================================

M	source/blender/alembic/intern/abc_mesh.cc

===================================================================

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) {



More information about the Bf-blender-cvs mailing list