Fix (unreported) unauthorized relesing of derived_final DM in paint projection code.

NEVER free yourself DM returned by mesh_get_derived_final(), it's always
to one assigned to ob->derived_final!
This commit is contained in:
Bastien Montagne 2018-06-19 10:43:54 +02:00
parent 751189e9d6
commit 64a2f98062
1 changed files with 1 additions and 1 deletions

View File

@ -3442,7 +3442,7 @@ static bool proj_paint_state_dm_init(ProjPaintState *ps)
ps->dm = mesh_get_derived_final(
ps->scene, ps->ob,
ps->scene->customdata_mask | CD_MASK_MTFACE | (ps->do_face_sel ? CD_ORIGINDEX : 0));
ps->dm_release = true;
ps->dm_release = false;
}
if (!CustomData_has_layer(&ps->dm->loopData, CD_MLOOPUV)) {