Fix: MeshPolygon.use_smooth set inversed

Mistake in 89e3ba4e25.
This commit is contained in:
Hans Goudey
2023-10-21 14:55:52 +02:00
parent f64ed2e963
commit b4e6ef4279

View File

@@ -583,8 +583,8 @@ static void rna_MeshPolygon_use_smooth_set(PointerRNA *ptr, bool value)
&mesh->face_data, CD_PROP_BOOL, CD_SET_DEFAULT, mesh->faces_num, "sharp_face"));
}
const int index = rna_MeshPolygon_index_get(ptr);
if (value != sharp_faces[index]) {
sharp_faces[index] = value;
if (value == sharp_faces[index]) {
sharp_faces[index] = !value;
BKE_mesh_tag_sharpness_changed(mesh);
}
}