|
Blender
V2.93
|
#include <stdlib.h>#include "MEM_guardedalloc.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_userdef_types.h"#include "DNA_view3d_types.h"#include "DNA_windowmanager_types.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "IMB_imbuf.h"#include "IMB_moviecache.h"#include "BKE_blender_copybuffer.h"#include "BKE_blendfile.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_layer.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_scene.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "BLO_readfile.h"#include "BLO_writefile.h"#include "IMB_colormanagement.h"Go to the source code of this file.
Functions | |
Copy/Paste <tt>.blend</tt>, partial saves. | |
| void | BKE_copybuffer_begin (Main *bmain_src) |
| void | BKE_copybuffer_tag_ID (ID *id) |
| bool | BKE_copybuffer_save (Main *bmain_src, const char *filename, ReportList *reports) |
| bool | BKE_copybuffer_read (Main *bmain_dst, const char *libname, ReportList *reports, const uint64_t id_types_mask) |
| int | BKE_copybuffer_paste (bContext *C, const char *libname, const short flag, ReportList *reports, const uint64_t id_types_mask) |
Used for copy/paste operator, (using a temporary file).
Definition in file blender_copybuffer.c.
| void BKE_copybuffer_begin | ( | Main * | bmain_src | ) |
Definition at line 60 of file blender_copybuffer.c.
References BKE_blendfile_write_partial_begin().
Referenced by outliner_id_copy_exec(), pose_copy_exec(), and view3d_copybuffer_exec().
| int BKE_copybuffer_paste | ( | bContext * | C, |
| const char * | libname, | ||
| const short | flag, | ||
| ReportList * | reports, | ||
| const uint64_t | id_types_mask | ||
| ) |
Definition at line 121 of file blender_copybuffer.c.
References BKE_library_make_local(), BKE_main_id_tag_all(), BKE_main_lib_objects_recalc_all(), BKE_view_layer_base_deselect_all(), BLI_findstring(), BLO_blendhandle_close(), BLO_blendhandle_from_file(), BLO_library_link_begin(), BLO_library_link_copypaste(), BLO_library_link_end(), BLO_library_link_params_init_with_context(), LibraryLink_Params::bmain, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), DEG_relations_tag_update(), LibraryLink_Params::flag, Scene::id, LibraryLink_Params::id_tag_extra, IMB_colormanagement_check_file_config(), lib, LIB_TAG_PRE_EXISTING, Main::libraries, NULL, scene, LibraryLink_Params::v3d, and LibraryLink_Params::view_layer.
Referenced by outliner_id_paste_exec(), and view3d_pastebuffer_exec().
| bool BKE_copybuffer_read | ( | Main * | bmain_dst, |
| const char * | libname, | ||
| ReportList * | reports, | ||
| const uint64_t | id_types_mask | ||
| ) |
Definition at line 85 of file blender_copybuffer.c.
References BKE_library_make_local(), BKE_main_id_tag_all(), BKE_main_lib_objects_recalc_all(), BLI_findstring(), BLO_blendhandle_close(), BLO_blendhandle_from_file(), BLO_library_link_begin(), BLO_library_link_copypaste(), BLO_library_link_end(), BLO_library_link_params_init(), LibraryLink_Params::flag, LibraryLink_Params::id_tag_extra, IMB_colormanagement_check_file_config(), lib, LIB_TAG_PRE_EXISTING, Main::libraries, and NULL.
Referenced by pose_paste_exec().
| bool BKE_copybuffer_save | ( | Main * | bmain_src, |
| const char * | filename, | ||
| ReportList * | reports | ||
| ) |
Definition at line 73 of file blender_copybuffer.c.
References BKE_blendfile_write_partial(), BKE_blendfile_write_partial_end(), and BLO_WRITE_PATH_REMAP_RELATIVE.
Referenced by outliner_id_copy_exec(), pose_copy_exec(), and view3d_copybuffer_exec().
| void BKE_copybuffer_tag_ID | ( | ID * | id | ) |
Definition at line 65 of file blender_copybuffer.c.
References BKE_blendfile_write_partial_tag_ID().
Referenced by outliner_id_copy_tag(), pose_copy_exec(), and view3d_copybuffer_exec().