Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/light.c
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_idtype.h" | #include "BKE_idtype.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| #include "BKE_light.h" | #include "BKE_light.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "DEG_depsgraph.h" | |||||
| static void light_init_data(ID *id) | static void light_init_data(ID *id) | ||||
| { | { | ||||
| Light *la = (Light *)id; | Light *la = (Light *)id; | ||||
| BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(la, id)); | BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(la, id)); | ||||
| MEMCPY_STRUCT_AFTER(la, DNA_struct_default_get(Light), id); | MEMCPY_STRUCT_AFTER(la, DNA_struct_default_get(Light), id); | ||||
| la->curfalloff = BKE_curvemapping_add(1, 0.0f, 1.0f, 1.0f, 0.0f); | la->curfalloff = BKE_curvemapping_add(1, 0.0f, 1.0f, 1.0f, 0.0f); | ||||
| ▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | Light *BKE_light_localize(Light *la) | ||||
| } | } | ||||
| lan->preview = NULL; | lan->preview = NULL; | ||||
| lan->id.tag |= LIB_TAG_LOCALIZED; | lan->id.tag |= LIB_TAG_LOCALIZED; | ||||
| return lan; | return lan; | ||||
| } | } | ||||
| void BKE_light_eval(struct Depsgraph *depsgraph, Light *la) | |||||
| { | |||||
| DEG_debug_print_eval(depsgraph, __func__, la->id.name, la); | |||||
| } | |||||