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:
parent
e515f81318
commit
5a97b282e9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue