Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_ies.cpp
| Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | bool IESFile::process_type_b() | ||||
| return true; | return true; | ||||
| } | } | ||||
| bool IESFile::process_type_c() | bool IESFile::process_type_c() | ||||
| { | { | ||||
| if(h_angles[0] == 90.0f) { | 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. */ | /* 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; | h_angles[i] -= 90.0f; | ||||
| } | } | ||||
| } | } | ||||
| if(h_angles[0] != 0.0f) { | if(h_angles[0] != 0.0f) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines | |||||