Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_object.cpp
| Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | switch(b_light.type()) { | ||||
| } | } | ||||
| /* Hemi were removed from 2.8 */ | /* Hemi were removed from 2.8 */ | ||||
| // case BL::Light::type_HEMI: { | // case BL::Light::type_HEMI: { | ||||
| // light->type = LIGHT_DISTANT; | // light->type = LIGHT_DISTANT; | ||||
| // light->size = 0.0f; | // light->size = 0.0f; | ||||
| // break; | // break; | ||||
| // } | // } | ||||
| case BL::Light::type_SUN: { | case BL::Light::type_SUN: { | ||||
| BL::SunLight b_sun_light(b_light); | PointerRNA clamp = RNA_pointer_get(&b_light.ptr, "cycles"); | ||||
| light->size = b_sun_light.shadow_soft_size(); | light->sun_angle=get_float(clamp,"sun_angle"); | ||||
| light->type = LIGHT_DISTANT; | light->type = LIGHT_DISTANT; | ||||
| break; | break; | ||||
| } | } | ||||
| case BL::Light::type_AREA: { | case BL::Light::type_AREA: { | ||||
| BL::AreaLight b_area_light(b_light); | BL::AreaLight b_area_light(b_light); | ||||
| light->size = 1.0f; | light->size = 1.0f; | ||||
| light->axisu = transform_get_column(&tfm, 0); | light->axisu = transform_get_column(&tfm, 0); | ||||
| light->axisv = transform_get_column(&tfm, 1); | light->axisv = transform_get_column(&tfm, 1); | ||||
| ▲ Show 20 Lines • Show All 520 Lines • Show Last 20 Lines | |||||