Cleanup: pass const variables
This commit is contained in:
@@ -184,7 +184,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
|
||||
|
||||
if (((result == me) || (me->mvert == result->mvert) || (me->medge == result->medge)) &&
|
||||
(dtmd->data_types & DT_TYPES_AFFECT_MESH)) {
|
||||
/* We need to duplicate data here, otherwise setting custom normals, edges' shaprness, etc.,
|
||||
/* We need to duplicate data here, otherwise setting custom normals, edges' sharpness, etc.,
|
||||
* could modify org mesh, see T43671. */
|
||||
BKE_id_copy_ex(NULL, &me_mod->id, (ID **)&result, LIB_ID_COPY_LOCALIZE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user