Blender
V3.3
|
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_defaults.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "DNA_world_types.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_anim_data.h"
#include "BKE_icons.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_world.h"
#include "BLT_translation.h"
#include "DRW_engine.h"
#include "DEG_depsgraph.h"
#include "GPU_material.h"
#include "BLO_read_write.h"
Go to the source code of this file.
Macros | |
#define | DNA_DEPRECATED_ALLOW |
Functions | |
static void | world_free_data (ID *id) |
static void | world_init_data (ID *id) |
static void | world_copy_data (Main *bmain, ID *id_dst, const ID *id_src, const int flag) |
static void | world_foreach_id (ID *id, LibraryForeachIDData *data) |
static void | world_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
static void | world_blend_read_data (BlendDataReader *reader, ID *id) |
static void | world_blend_read_lib (BlendLibReader *reader, ID *id) |
static void | world_blend_read_expand (BlendExpander *expander, ID *id) |
World * | BKE_world_add (Main *bmain, const char *name) |
void | BKE_world_eval (struct Depsgraph *depsgraph, World *world) |
Variables | |
IDTypeInfo | IDType_ID_WO |
Definition at line 212 of file world.c.
References BKE_id_new(), and ID_WO.
Referenced by new_world_exec().
Definition at line 221 of file world.c.
References DEG_debug_print_eval(), depsgraph, GPU_material_free(), World::gpumaterial, World::id, ID::name, and world.
|
static |
Definition at line 157 of file world.c.
References World::adt, BKE_animdata_blend_read_data(), BKE_previewimg_blend_read(), BLI_listbase_clear(), BLO_read_data_address, World::gpumaterial, World::lightgroup, and World::preview.
|
static |
Definition at line 176 of file world.c.
References BLO_expand.
|
static |
Definition at line 170 of file world.c.
References BLO_read_id_address, World::id, and ID::lib.
|
static |
Definition at line 129 of file world.c.
References World::adt, BKE_animdata_blend_write(), BKE_id_blend_write(), BKE_previewimg_blend_write(), BLI_listbase_clear(), BLO_write_id_struct, BLO_write_struct, World::gpumaterial, World::id, World::lightgroup, World::nodetree, ntreeBlendWrite(), and World::preview.
Only copy internal data of World 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 84 of file world.c.
References BKE_id_copy_ex(), BKE_previewimg_id_copy(), BLI_listbase_clear(), World::drawdata, World::gpumaterial, World::id, LIB_ID_COPY_NO_PREVIEW, LIB_ID_CREATE_LOCAL, LIB_ID_CREATE_NO_ALLOCATE, World::lightgroup, MEM_dupallocN, World::nodetree, ntreeLocalize, NULL, and World::preview.
|
static |
Definition at line 118 of file world.c.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_library_foreach_ID_embedded(), data, World::nodetree, and world.
Free (or release) any data used by this world (does not free the world itself).
Definition at line 45 of file world.c.
References BKE_icon_id_delete(), BKE_previewimg_free(), DRW_drawdata_free(), GPU_material_free(), World::gpumaterial, World::lightgroup, MEM_freeN, MEM_SAFE_FREE, World::nodetree, ntreeFreeEmbeddedTree(), NULL, and World::preview.
Definition at line 66 of file world.c.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
IDTypeInfo IDType_ID_WO |