Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/world.c
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | IDTypeInfo IDType_ID_WO = { | ||||
| .foreach_cache = NULL, | .foreach_cache = NULL, | ||||
| .blend_write = world_blend_write, | .blend_write = world_blend_write, | ||||
| .blend_read_data = world_blend_read_data, | .blend_read_data = world_blend_read_data, | ||||
| .blend_read_lib = world_blend_read_lib, | .blend_read_lib = world_blend_read_lib, | ||||
| .blend_read_expand = world_blend_read_expand, | .blend_read_expand = world_blend_read_expand, | ||||
| .blend_read_undo_preserve = NULL, | .blend_read_undo_preserve = NULL, | ||||
| .lib_override_apply_post = NULL, | |||||
| }; | }; | ||||
| World *BKE_world_add(Main *bmain, const char *name) | World *BKE_world_add(Main *bmain, const char *name) | ||||
| { | { | ||||
| World *wrld; | World *wrld; | ||||
| wrld = BKE_id_new(bmain, ID_WO, name); | wrld = BKE_id_new(bmain, ID_WO, name); | ||||
| return wrld; | return wrld; | ||||
| } | } | ||||
| void BKE_world_eval(struct Depsgraph *depsgraph, World *world) | void BKE_world_eval(struct Depsgraph *depsgraph, World *world) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, world->id.name, world); | DEG_debug_print_eval(depsgraph, __func__, world->id.name, world); | ||||
| GPU_material_free(&world->gpumaterial); | GPU_material_free(&world->gpumaterial); | ||||
| } | } | ||||