Fix #129204: Multires normal automasking broken for certain brushes

Introduced in a4c9c01f31

Pull Request: https://projects.blender.org/blender/blender/pulls/129236
This commit is contained in:
Sean Kim
2024-10-19 01:14:00 +02:00
committed by Sean Kim
parent c98da9d971
commit 15be5b7708

View File

@@ -894,7 +894,8 @@ void calc_grids_factors(const Depsgraph &depsgraph,
for (const int offset : IndexRange(key.grid_area)) {
const int node_vert = node_start + offset;
const int vert = grids_start + offset;
const float3 &normal = orig_normals.is_empty() ? subdiv_ccg.normals[vert] : orig_normals[i];
const float3 &normal = orig_normals.is_empty() ? subdiv_ccg.normals[vert] :
orig_normals[node_vert];
/* Since brush normal mode depends on the current mirror symmetry pass
* it is not folded into the factor cache (when it exists). */