Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/light.c
| Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | IDTypeInfo IDType_ID_LA = { | ||||
| .foreach_cache = NULL, | .foreach_cache = NULL, | ||||
| .blend_write = light_blend_write, | .blend_write = light_blend_write, | ||||
| .blend_read_data = light_blend_read_data, | .blend_read_data = light_blend_read_data, | ||||
| .blend_read_lib = light_blend_read_lib, | .blend_read_lib = light_blend_read_lib, | ||||
| .blend_read_expand = light_blend_read_expand, | .blend_read_expand = light_blend_read_expand, | ||||
| .blend_read_undo_preserve = NULL, | .blend_read_undo_preserve = NULL, | ||||
| .lib_override_apply_post = NULL, | |||||
| }; | }; | ||||
| Light *BKE_light_add(Main *bmain, const char *name) | Light *BKE_light_add(Main *bmain, const char *name) | ||||
| { | { | ||||
| Light *la; | Light *la; | ||||
| la = BKE_id_new(bmain, ID_LA, name); | la = BKE_id_new(bmain, ID_LA, name); | ||||
| return la; | return la; | ||||
| } | } | ||||
| void BKE_light_eval(struct Depsgraph *depsgraph, Light *la) | void BKE_light_eval(struct Depsgraph *depsgraph, Light *la) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, la->id.name, la); | DEG_debug_print_eval(depsgraph, __func__, la->id.name, la); | ||||
| } | } | ||||