Mesh: Reduce custom normal calculation memory usage #107592
|
@ -120,8 +120,8 @@ struct CornerNormalSpaceArray {
|
|||
Array<int> corner_space_indices;
|
||||
};
|
||||
|
||||
void lnor_space_custom_data_to_normal(const CornerNormalSpace *lnor_space,
|
||||
const float3 lnor_no_custom,
|
||||
void lnor_space_custom_normal_to_data(const CornerNormalSpace *lnor_space,
|
||||
|
||||
float3 lnor_no_custom,
|
||||
const float custom_lnor[3],
|
||||
short r_clnor_data[2]);
|
||||
|
||||
|
|
|
@ -434,7 +434,7 @@ Mesh *BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(MirrorModifierData *mmd,
|
|||
mul_m4_v3(mtx_nor, loop_normals[mirrorj]);
|
||||
|
||||
const int space_index = lnors_spacearr.corner_space_indices[mirrorj];
|
||||
blender::bke::mesh::lnor_space_custom_data_to_normal(&lnors_spacearr.spaces[space_index],
|
||||
blender::bke::mesh::lnor_space_custom_normal_to_data(&lnors_spacearr.spaces[space_index],
|
||||
loop_normals[mirrorj],
|
||||
loop_normals[mirrorj],
|
||||
clnors[mirrorj]);
|
||||
|
|
Loading…
Reference in New Issue
The naming here introduces "fan_space_custom_normal" which reads as if it might be different from
CornerNormalSpace
(as if there might be a "fan space" and a "corner normal space").This could be more clearly names that it's a direct conversion from
CornerNormalSpace
toCD_CUSTOMLOOPNORMAL
.e.g.
corner_normal_space_to_clnor
.Ah, sorry, I meant to rename that and keep the same name as before like you suggested.