Merged changes in the trunk up to revision 55357.
[blender-staging.git] / source / blender / bmesh / intern / bmesh_mesh_conv.c
index 4c0c1507dbfaf1aa7cf7eaf8514c50bc77c89470..e0c8cb619005ef9335f898542664f407ad8d7dde 100644 (file)
@@ -782,7 +782,9 @@ void BM_mesh_bm_to_me(BMesh *bm, Mesh *me, bool do_tessface)
                                                                        hmd->indexar[j++] = BM_elem_index_get(eve);
                                                                }
                                                        }
-                                                       else j++;
+                                                       else {
+                                                               j++;
+                                                       }
                                                }
 
                                                hmd->totindex = j;