CDDM Copy: Only tag data layers dirty if we ignored tessellation data
This solves assert failure in CustomData_from_bmeshpoly() happening with broom.blend file from barber shop SVN.
This commit is contained in:
parent
809ed38075
commit
fc185fb1d2
@ -2428,8 +2428,12 @@ static DerivedMesh *cddm_copy_ex(DerivedMesh *source,
|
||||
dm->cd_flag = source->cd_flag;
|
||||
dm->dirty = source->dirty;
|
||||
|
||||
/* Tessellation data is never copied, so tag it here. */
|
||||
dm->dirty |= DM_DIRTY_TESS_CDLAYERS;
|
||||
/* Tessellation data is never copied, so tag it here.
|
||||
* Only tag dirty layers if we really ignored tessellation faces.
|
||||
*/
|
||||
if (!copy_tessface_data) {
|
||||
dm->dirty |= DM_DIRTY_TESS_CDLAYERS;
|
||||
}
|
||||
|
||||
CustomData_copy_data(&source->vertData, &dm->vertData, 0, 0, numVerts);
|
||||
CustomData_copy_data(&source->edgeData, &dm->edgeData, 0, 0, numEdges);
|
||||
|
Loading…
Reference in New Issue
Block a user