Split Normals I (2/5): Add basic BMesh support of split normals.
[blender.git] / source / blender / bmesh / tools / bmesh_edgenet.c
index 576d604c1cb464b8dd9da236fb991f3cd9403939..ddf43949258cffc6a0c6b4d01ae6ed33f9ab6360 100644 (file)
@@ -443,8 +443,8 @@ void BM_mesh_edgenet(BMesh *bm,
                      const bool use_edge_tag, const bool use_new_face_tag)
 {
        VertNetInfo *vnet_info = MEM_callocN(sizeof(*vnet_info) * (size_t)bm->totvert, __func__);
-       BLI_mempool *edge_queue_pool = BLI_mempool_create(sizeof(LinkNode), 1, 512, BLI_MEMPOOL_NOP);
-       BLI_mempool *path_pool = BLI_mempool_create(sizeof(LinkNode), 1, 512, BLI_MEMPOOL_NOP);
+       BLI_mempool *edge_queue_pool = BLI_mempool_create(sizeof(LinkNode), 0, 512, BLI_MEMPOOL_NOP);
+       BLI_mempool *path_pool = BLI_mempool_create(sizeof(LinkNode), 0, 512, BLI_MEMPOOL_NOP);
        LinkNode *edge_queue = NULL;
 
        BMEdge *e;
@@ -500,7 +500,7 @@ void BM_mesh_edgenet(BMesh *bm,
                BLI_assert(BLI_mempool_count(path_pool) == 0);
        }
 
-       bm->elem_index_dirty |= BM_FACE;
+       bm->elem_index_dirty |= BM_FACE | BM_LOOP;
 
        BLI_mempool_destroy(edge_queue_pool);
        BLI_mempool_destroy(path_pool);