Fix T88900: Crash when setting Edge Weight/Crease

The `recalcData` of "convert_mesh_edge" did more
than it was supposed to.
This commit is contained in:
Germano Cavalcante 2021-06-07 07:52:34 -03:00
parent 4f6cab176a
commit 8b8c3c34dd
Notes: blender-bot 2023-02-14 11:29:52 +01:00
Referenced by issue #88969, Crash Blender 3.0 Edge Becel Weight
Referenced by issue #88900, Crash when setting Edge Weight/Crease
3 changed files with 11 additions and 1 deletions

View File

@ -1698,9 +1698,11 @@ void recalcData(TransInfo *t)
recalcData_mask_common(t);
break;
case TC_MESH_VERTS:
case TC_MESH_EDGES:
recalcData_mesh(t);
break;
case TC_MESH_EDGES:
recalcData_mesh_edge(t);
break;
case TC_MESH_SKIN:
recalcData_mesh_skin(t);
break;

View File

@ -169,6 +169,7 @@ void special_aftertrans_update__mesh(bContext *C, TransInfo *t);
/* transform_convert_mesh_edge.c */
void createTransEdge(TransInfo *t);
void recalcData_mesh_edge(TransInfo *t);
/* transform_convert_mesh_skin.c */
void createTransMeshSkin(TransInfo *t);

View File

@ -123,4 +123,11 @@ void createTransEdge(TransInfo *t)
}
}
void recalcData_mesh_edge(TransInfo *t)
{
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
DEG_id_tag_update(tc->obedit->data, ID_RECALC_GEOMETRY);
}
}
/** \} */