Fix #30152: Several drag and drop of image on mesh crashes
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 12 Feb 2012 11:21:35 +0000 (11:21 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 12 Feb 2012 11:21:35 +0000 (11:21 +0000)
commit6afa4da928d5d791b0741cfbf47304ea66ad6e34
treebe893e4fa90ffdeb46bb8ea7dfca5e148a907f66
parentbbff6787bc8f13c7393690b25aae761789673b03
Fix #30152: Several drag and drop of image on mesh crashes

Issue was caused by making and loading editMesh in drop_named_image_invoke,
which lead to freeing/changing pointers used by CustomData layers. Some of
this pointers might be used by DerivedMesh, so we need to update DerivedMesh
after loading EditMesh.
source/blender/editors/mesh/mesh_data.c