Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Context not available. | |||||
| LISTBASE_FOREACH (bArmature *, arm, &bmain->armatures) { | LISTBASE_FOREACH (bArmature *, arm, &bmain->armatures) { | ||||
| arm->flag &= ~(ARM_FLAG_UNUSED_7 | ARM_FLAG_UNUSED_9); | arm->flag &= ~(ARM_FLAG_UNUSED_7 | ARM_FLAG_UNUSED_9); | ||||
| } | } | ||||
| /* Initializes sun lights with the new angular diameter property */ | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "Light", "float", "sun_angle")) { | |||||
| LISTBASE_FOREACH (Light *, light, &bmain->lights) { | |||||
| light->sun_angle = 2.0f * atanf(light->area_size / 2.0f); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||