Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/light.cpp
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | void BlenderSync::sync_light(BL::Object &b_parent, | ||||
| light->set_use_glossy((visibility & PATH_RAY_GLOSSY) != 0); | light->set_use_glossy((visibility & PATH_RAY_GLOSSY) != 0); | ||||
| light->set_use_transmission((visibility & PATH_RAY_TRANSMIT) != 0); | light->set_use_transmission((visibility & PATH_RAY_TRANSMIT) != 0); | ||||
| light->set_use_scatter((visibility & PATH_RAY_VOLUME_SCATTER) != 0); | light->set_use_scatter((visibility & PATH_RAY_VOLUME_SCATTER) != 0); | ||||
| light->set_is_shadow_catcher(b_ob_info.real_object.is_shadow_catcher()); | light->set_is_shadow_catcher(b_ob_info.real_object.is_shadow_catcher()); | ||||
| /* lightgroup */ | /* lightgroup */ | ||||
| light->set_lightgroup(ustring(b_ob_info.real_object.lightgroup())); | light->set_lightgroup(ustring(b_ob_info.real_object.lightgroup())); | ||||
| /* LPE tag is on the object. */ | |||||
| PointerRNA cobject = RNA_pointer_get(&b_parent.ptr, "cycles"); | |||||
| light->set_lpe_tag(ustring(get_string(cobject, "lpe_tag"))); | |||||
| /* tag */ | /* tag */ | ||||
| light->tag_update(scene); | light->tag_update(scene); | ||||
| } | } | ||||
| void BlenderSync::sync_background_light(BL::SpaceView3D &b_v3d, bool use_portal) | void BlenderSync::sync_background_light(BL::SpaceView3D &b_v3d, bool use_portal) | ||||
| { | { | ||||
| BL::World b_world = b_scene.world(); | BL::World b_world = b_scene.world(); | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||