From bc0b86797cc7993681ff3293adb9ddfd7a4c4a2a Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 26 Jun 2024 15:36:47 +0200 Subject: [PATCH] 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 --- source/blender/io/collada/collada_utils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/io/collada/collada_utils.cpp b/source/blender/io/collada/collada_utils.cpp index 6c8f6ef7b28..e5be7d4439d 100644 --- a/source/blender/io/collada/collada_utils.cpp +++ b/source/blender/io/collada/collada_utils.cpp @@ -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; }