Fix (unreported) crash when importing data with custom normals.

The usage of `index` was inverted between destination array of vectors
and source vector in rB3a3d9488a1633.
This commit is contained in:
Bastien Montagne 2023-02-01 10:53:53 +01:00
parent e515f81318
commit 5a97b282e9
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ static void rna_MeshLoop_normal_set(PointerRNA *ptr, const float *values)
float(*layer)[3] = CustomData_get_layer_for_write(&me->ldata, CD_NORMAL, me->totloop);
if (layer) {
normalize_v3_v3(*layer, values + index);
normalize_v3_v3(layer[index], values);
}
}