Fix (unreported) transfer mesh data operator not enabling autosmooth.

When we transfer custom normals and allow for data creation, we should
also enable autosmooth on destination meshes.
This commit is contained in:
Bastien Montagne 2019-08-05 18:43:03 +02:00
parent 64b092974c
commit 9fe592ab8f
1 changed files with 6 additions and 2 deletions

View File

@ -495,12 +495,16 @@ static int data_transfer_exec(bContext *C, wmOperator *op)
NULL,
false,
op->reports)) {
if (data_type == DT_TYPE_LNOR && use_create) {
((Mesh *)ob_dst->data)->flag |= ME_AUTOSMOOTH;
}
DEG_id_tag_update(&ob_dst->id, ID_RECALC_GEOMETRY);
changed = true;
}
}
DEG_id_tag_update(&ob_dst->id, ID_RECALC_GEOMETRY);
if (reverse_transfer) {
SWAP(Object *, ob_src, ob_dst);
}