Fix #109047: Screw modifier's smooth shading option does not work

Caused by 5876573e14

Seems like a copy/paste mistake in above commit, now corrected.

Pull Request: https://projects.blender.org/blender/blender/pulls/109052
This commit is contained in:
Philipp Oeser
2023-06-16 14:22:50 +02:00
committed by Philipp Oeser
parent 57c3c68ffb
commit 23eef18b65

View File

@@ -878,7 +878,7 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
else {
origindex[mpoly_index] = ORIGINDEX_NONE;
dst_material_index[mpoly_index] = mat_nr;
sharp_faces.span[i] = use_flat_shading;
sharp_faces.span[mpoly_index] = use_flat_shading;
}
poly_offests_new[mpoly_index] = mpoly_index * 4;