Fix assert in some cases when using DataTransfer modifier for custom normals.

Reported by @sybren on IRC, thanks.

Should be safe for 2.80.
This commit is contained in:
Bastien Montagne 2019-07-19 16:10:20 +02:00 committed by Brecht Van Lommel
parent 50c5108f79
commit 7f77f5f4a4
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -85,6 +86,7 @@ void BKE_object_data_transfer_dttypes_to_cdmask(const int dtdata_types,
}
else if (cddata_type == CD_FAKE_LNOR) {
r_data_masks->vmask |= CD_MASK_NORMAL;
r_data_masks->pmask |= CD_MASK_NORMAL;
r_data_masks->lmask |= CD_MASK_NORMAL | CD_MASK_CUSTOMLOOPNORMAL;
}
}