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:
parent
751189e9d6
commit
64a2f98062
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue