Fix #94125: Collada: not all edit mode changes are exported

This was the case when mulitple objects had changes in multi-object-
editmode.

Similar to f8b11528b2 & 3dd08beab308, this now ensures we have mesh data
in editmode.

Pull Request: https://projects.blender.org/blender/blender/pulls/123732
This commit is contained in:
Philipp Oeser 2024-06-26 15:36:47 +02:00 committed by Philipp Oeser
parent 56023d5b63
commit bc0b86797c

@ -44,6 +44,7 @@
#include "BKE_material.h"
#include "BKE_mesh.hh"
#include "BKE_mesh_legacy_convert.hh"
#include "BKE_mesh_wrapper.hh"
#include "BKE_mesh_runtime.hh"
#include "BKE_node.hh"
#include "BKE_object.hh"
@ -288,6 +289,10 @@ Mesh *bc_get_mesh_copy(BlenderContext &blender_context,
bc_triangulate_mesh(mesh);
}
BKE_mesh_tessface_ensure(mesh);
/* Ensure data exists if currently in edit mode. */
BKE_mesh_wrapper_ensure_mdata(mesh);
return mesh;
}