Blender
V3.3
|
#include <stdlib.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_defaults.h"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_anim_data.h"
#include "BKE_colortools.h"
#include "BKE_icons.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_light.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BLT_translation.h"
#include "DEG_depsgraph.h"
#include "BLO_read_write.h"
Go to the source code of this file.
Macros | |
#define | DNA_DEPRECATED_ALLOW |
Functions | |
static void | light_init_data (ID *id) |
static void | light_copy_data (Main *bmain, ID *id_dst, const ID *id_src, const int flag) |
static void | light_free_data (ID *id) |
static void | light_foreach_id (ID *id, LibraryForeachIDData *data) |
static void | light_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
static void | light_blend_read_data (BlendDataReader *reader, ID *id) |
static void | light_blend_read_lib (BlendLibReader *reader, ID *id) |
static void | light_blend_read_expand (BlendExpander *expander, ID *id) |
Light * | BKE_light_add (Main *bmain, const char *name) |
void | BKE_light_eval (struct Depsgraph *depsgraph, Light *la) |
Variables | |
IDTypeInfo | IDType_ID_LA |
Definition at line 203 of file light.c.
References BKE_id_new(), and ID_LA.
Referenced by BKE_object_obdata_add_from_type(), blender::io::usd::USDLightReader::create_object(), and DocumentImporter::writeLight().
|
static |
Definition at line 146 of file light.c.
References Light::adt, BKE_animdata_blend_read_data(), BKE_curvemapping_blend_read(), BKE_previewimg_blend_read(), BLO_read_data_address, Light::curfalloff, and Light::preview.
|
static |
Definition at line 167 of file light.c.
References BLO_expand.
|
static |
Definition at line 161 of file light.c.
References BLO_read_id_address, Light::id, and ID::lib.
|
static |
Definition at line 121 of file light.c.
References Light::adt, BKE_animdata_blend_write(), BKE_curvemapping_blend_write(), BKE_id_blend_write(), BKE_previewimg_blend_write(), BLO_write_id_struct, BLO_write_struct, Light::curfalloff, Light::id, Light::nodetree, ntreeBlendWrite(), and Light::preview.
Only copy internal data of Light ID from source to already allocated/initialized destination. You probably never want to use that directly, use BKE_id_copy or BKE_id_copy_ex for typical needs.
WARNING! This function will not handle ID user count!
flag | Copying options (see BKE_lib_id.h's LIB_ID_COPY_... flags for more). |
Definition at line 64 of file light.c.
References BKE_curvemapping_copy(), BKE_id_copy_ex(), BKE_previewimg_id_copy(), Light::curfalloff, Light::id, LIB_ID_COPY_NO_PREVIEW, LIB_ID_CREATE_LOCAL, LIB_ID_CREATE_NO_ALLOCATE, Light::nodetree, ntreeLocalize, NULL, and Light::preview.
|
static |
Definition at line 111 of file light.c.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_library_foreach_ID_embedded(), data, lamp, and Light::nodetree.
Definition at line 93 of file light.c.
References BKE_curvemapping_free(), BKE_icon_id_delete(), BKE_previewimg_free(), Light::curfalloff, ID::icon_id, Light::id, MEM_freeN, Light::nodetree, ntreeFreeEmbeddedTree(), NULL, and Light::preview.
Definition at line 43 of file light.c.
References BKE_curvemapping_add(), BKE_curvemapping_init(), BLI_assert, Light::curfalloff, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
IDTypeInfo IDType_ID_LA |