Fix T62558: Certain IES file causes crash

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4551
This commit is contained in:
Jacques Lucke 2019-03-19 15:33:28 +01:00
parent 1cb325fc22
commit 9b8eef9d9c
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ bool IESFile::process_type_c()
{
if(h_angles[0] == 90.0f) {
/* Some files are stored from 90° to 270°, so we just rotate them to the regular 0°-180° range here. */
for(int i = 0; i < v_angles.size(); i++) {
for(int i = 0; i < h_angles.size(); i++) {
h_angles[i] -= 90.0f;
}
}