Fix T49249: Alembic export with multiple hair systems crash blender
authorSybren A. Stüvel <sybren@stuvel.eu>
Wed, 8 Feb 2017 10:47:16 +0000 (11:47 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Wed, 8 Feb 2017 11:26:36 +0000 (12:26 +0100)
Removed unnecessary call to DM_update_tessface_data(). This call is
already performed by DM_ensure_tessface(dm). The call being performed
twice caused a failing BLI_assert().

Reviewed by: Kévin Dietrich

source/blender/alembic/intern/abc_hair.cc

index 626883c86f55637062de9b64f4f1d5b9a77524a2..e328df24e5389540e4c6dc3400880402ab915c45 100644 (file)
@@ -77,7 +77,6 @@ void AbcHairWriter::do_write()
 
        DerivedMesh *dm = mesh_create_derived_view(m_scene, m_object, CD_MASK_MESH);
        DM_ensure_tessface(dm);
-       DM_update_tessface_data(dm);
 
        std::vector<Imath::V3f> verts;
        std::vector<int32_t> hvertices;