Fis T57948: Crash in 2.8x lookdev

This commit is contained in:
Clément Foucault 2018-11-20 13:17:03 +01:00
parent 566a4a96cb
commit fc181d855e
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ static void studiolight_spherical_harmonics_apply_band_factors(StudioLight *sl,
int index = 0, dst_idx = 0;
for (int band = 0; band < STUDIOLIGHT_SH_BANDS; band++) {
for (int m = -1; m <= band; m++) {
for (int m = 0; m < SQUARE(band+1) - SQUARE(band); m++) {
/* Skip L3 */
if (band != 3) {
mul_v3_v3fl(sl->spherical_harmonics_coefs[dst_idx++], sh[index], sl_sh_band_factors[band]);