Alternate fix for bug [#34369], where invalid polygon normals could be saved in the mesh data and in the file.
This was from initial BMesh merge, but should not have been added in since face normals are calculated and stored in the DerivedMesh. Toggling editmode would remove poly-normals so its unlikely anything relies on this custom-data.
This commit is contained in:
@@ -1169,7 +1169,7 @@ const CustomDataMask CD_MASK_MESH =
|
||||
CD_MASK_MSTICKY | CD_MASK_MDEFORMVERT | CD_MASK_MTFACE | CD_MASK_MCOL |
|
||||
CD_MASK_PROP_FLT | CD_MASK_PROP_INT | CD_MASK_PROP_STR | CD_MASK_MDISPS |
|
||||
CD_MASK_MLOOPUV | CD_MASK_MLOOPCOL | CD_MASK_MPOLY | CD_MASK_MLOOP |
|
||||
CD_MASK_MTEXPOLY | CD_MASK_NORMAL | CD_MASK_RECAST | CD_MASK_PAINT_MASK |
|
||||
CD_MASK_MTEXPOLY | CD_MASK_RECAST | CD_MASK_PAINT_MASK |
|
||||
CD_MASK_GRID_PAINT_MASK | CD_MASK_MVERT_SKIN;
|
||||
const CustomDataMask CD_MASK_EDITMESH =
|
||||
CD_MASK_MSTICKY | CD_MASK_MDEFORMVERT | CD_MASK_MTFACE | CD_MASK_MLOOPUV |
|
||||
|
||||
@@ -620,8 +620,6 @@ static int modifier_apply_obdata(ReportList *reports, Scene *scene, Object *ob,
|
||||
}
|
||||
|
||||
DM_to_mesh(dm, me, ob);
|
||||
/* so we don't reuse this normal layer, see: [#34369] */
|
||||
CustomData_free_layers(&me->pdata, CD_NORMAL, me->totpoly);
|
||||
|
||||
dm->release(dm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user