Fix initialization of Edge Slide with Single Side

It was not being initialized.
Error introduced in cf42721fe2
This commit is contained in:
Germano Cavalcante 2020-06-21 20:27:41 -03:00
parent ba97da21ac
commit c309177edd
1 changed files with 8 additions and 10 deletions

View File

@ -1432,16 +1432,14 @@ void initEdgeSlide_ex(
t->custom.mode.use_free = true;
}
if (use_double_side) {
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
sld = use_double_side ? createEdgeSlideVerts_double_side(t, tc) :
createEdgeSlideVerts_single_side(t, tc);
if (sld) {
tc->custom.mode.data = sld;
tc->custom.mode.free_cb = freeEdgeSlideVerts;
trans_mesh_customdata_correction_init(t, tc);
ok = true;
}
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
sld = use_double_side ? createEdgeSlideVerts_double_side(t, tc) :
createEdgeSlideVerts_single_side(t, tc);
if (sld) {
tc->custom.mode.data = sld;
tc->custom.mode.free_cb = freeEdgeSlideVerts;
trans_mesh_customdata_correction_init(t, tc);
ok = true;
}
}