fix [#31084] Dynamic Paint Blender File Crashes Blender.
[blender.git] / source / blender / blenkernel / intern / DerivedMesh.c
index 4169a24e7d9627bfba4e20ee580e3a58dff4290c..d09bea0f6622c60874be8cd822228ad20a6c36c5 100644 (file)
@@ -392,7 +392,7 @@ void DM_ensure_tessface(DerivedMesh *dm)
        }
 
        else if (dm->dirty & DM_DIRTY_TESS_CDLAYERS) {
-               BLI_assert(CustomData_has_layer(&dm->faceData, CD_ORIGINDEX));
+               BLI_assert(CustomData_has_layer(&dm->faceData, CD_ORIGINDEX) || numTessFaces == 0);
                DM_update_tessface_data(dm);
        }