Cleanup: Remove outdated code for mesh normals
After recent refactors to mesh normals (cfa53e0fbe
), they are no
longer stored in CustomData. A mechanism to compute them eagerly
should be implemented another way.
This commit is contained in:
parent
8b46731396
commit
5b8c07dc50
|
@ -70,8 +70,6 @@ void BKE_object_data_transfer_dttypes_to_cdmask(const int dtdata_types,
|
|||
r_data_masks->lmask |= CD_MASK_MLOOPUV;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -312,15 +312,10 @@ void BKE_mesh_remap_calc_source_cddata_masks_from_map_modes(const int UNUSED(ver
|
|||
{
|
||||
/* vert, edge and poly mapping modes never need extra cddata from source object. */
|
||||
const bool need_lnors_src = (loop_mode & MREMAP_USE_LOOP) && (loop_mode & MREMAP_USE_NORMAL);
|
||||
const bool need_pnors_src = need_lnors_src ||
|
||||
((loop_mode & MREMAP_USE_POLY) && (loop_mode & MREMAP_USE_NORMAL));
|
||||
|
||||
if (need_lnors_src) {
|
||||
r_cddata_mask->lmask |= CD_MASK_NORMAL;
|
||||
}
|
||||
if (need_pnors_src) {
|
||||
r_cddata_mask->pmask |= CD_MASK_NORMAL;
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_mesh_remap_init(MeshPairRemap *map, const int items_num)
|
||||
|
|
|
@ -1001,10 +1001,6 @@ bool BKE_mesh_validate_all_customdata(CustomData *vdata,
|
|||
CustomData_MeshMasks mask = {0};
|
||||
if (check_meshmask) {
|
||||
mask = CD_MASK_MESH;
|
||||
/* Normal data isn't in the mask since it is derived data,
|
||||
* but it is valid and should not be removed. */
|
||||
mask.vmask |= CD_MASK_NORMAL;
|
||||
mask.pmask |= CD_MASK_NORMAL;
|
||||
}
|
||||
|
||||
is_valid &= mesh_validate_customdata(
|
||||
|
|
|
@ -149,10 +149,6 @@ void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *o
|
|||
cddata_masks.pmask |= CD_MASK_PROP_ALL;
|
||||
cddata_masks.lmask |= CD_MASK_PROP_ALL;
|
||||
|
||||
/* Also copy over normal layers to avoid recomputation. */
|
||||
cddata_masks.pmask |= CD_MASK_NORMAL;
|
||||
cddata_masks.vmask |= CD_MASK_NORMAL;
|
||||
|
||||
/* Make sure Freestyle edge/face marks appear in DM for render (see T40315).
|
||||
* Due to Line Art implementation, edge marks should also be shown in viewport. */
|
||||
#ifdef WITH_FREESTYLE
|
||||
|
|
|
@ -202,7 +202,6 @@ static void updateDepsgraph(GpencilModifierData *md,
|
|||
CustomData_MeshMasks mask = {0};
|
||||
|
||||
if (BKE_shrinkwrap_needs_normals(mmd->shrink_type, mmd->shrink_mode)) {
|
||||
mask.vmask |= CD_MASK_NORMAL;
|
||||
mask.lmask |= CD_MASK_NORMAL | CD_MASK_CUSTOMLOOPNORMAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue