diff options
author | Bastien Montagne <bastien@blender.org> | 2020-08-05 16:36:24 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-08-05 16:36:24 +0300 |
commit | 56d7e39b92997768b3db8ce2dbc262f869994145 (patch) | |
tree | 31c108196109b02a73f4cad7e8fa3d45de1d1a45 /source/blender/blenkernel/intern | |
parent | c961bf8975ef75ec3928b76c95584ca1c1151c36 (diff) |
Fix T79520: Data Transfer modifier: crash/assert going into editmode on a source object.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/data_transfer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/data_transfer.c b/source/blender/blenkernel/intern/data_transfer.c index 9bdd80fd668..7bf87d0e639 100644 --- a/source/blender/blenkernel/intern/data_transfer.c +++ b/source/blender/blenkernel/intern/data_transfer.c @@ -43,6 +43,7 @@ #include "BKE_mesh_mapping.h" #include "BKE_mesh_remap.h" #include "BKE_mesh_runtime.h" +#include "BKE_mesh_wrapper.h" #include "BKE_modifier.h" #include "BKE_object.h" #include "BKE_object_deform.h" @@ -1467,6 +1468,7 @@ bool BKE_object_data_transfer_ex(struct Depsgraph *depsgraph, if (!me_src) { return changed; } + BKE_mesh_wrapper_ensure_mdata(me_src); if (auto_transform) { if (space_transform == NULL) { |