forked from bartvdbraak/blender
fix [#28112] Vertex paint crash
This commit is contained in:
parent
dde50cc39f
commit
cd793378db
@ -1883,7 +1883,9 @@ static void mesh_calc_modifiers(Scene *scene, Object *ob, float (*inputVertexCos
|
||||
|
||||
/* set the DerivedMesh to only copy needed data */
|
||||
mask= (CustomDataMask)GET_INT_FROM_POINTER(curr->link);
|
||||
DM_set_only_copy(dm, mask);
|
||||
/* needMapping check here fixes bug [#28112], otherwise its
|
||||
* possible that it wont be copied */
|
||||
DM_set_only_copy(dm, mask | (needMapping ? CD_MASK_ORIGINDEX : 0));
|
||||
|
||||
/* add cloth rest shape key if need */
|
||||
if(mask & CD_MASK_CLOTH_ORCO)
|
||||
|
Loading…
Reference in New Issue
Block a user