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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user