bmesh: fixed merge issues with navmesh (though I've not tested if it works yet).
[blender.git] / source / blender / blenkernel / intern / DerivedMesh.c
index 389b97557146ed57193b337ff776ee258ce47dda..a6d912712186dbf4953aa9fd24fb6a4bee52fd71 100644 (file)
@@ -2400,7 +2400,7 @@ static DerivedMesh *navmesh_dm_createNavMeshForVisualization(DerivedMesh *dm)
        int *dtrisToPolysMap=NULL, *dtrisToTrisMap=NULL, *trisToFacesMap=NULL;
        int res;
 
-       result = CDDM_copy(dm);
+       result = CDDM_copy(dm, 0);
        if (!CustomData_has_layer(&result->faceData, CD_RECAST)) {
                int *sourceRecastData = (int*)CustomData_get_layer(&dm->faceData, CD_RECAST);
                if (sourceRecastData) {