64 Object *obact_copy =
nullptr;
71 (PartialWriteContext::IDAddOperations::SET_FAKE_USER |
72 PartialWriteContext::IDAddOperations::SET_CLIPBOARD_MARK |
73 PartialWriteContext::IDAddOperations::ADD_DEPENDENCIES)},
76 if (obact && (obact == ob)) {
77 obact_copy =
reinterpret_cast<Object *
>(ob_id_copy);
108 ot->name =
"Copy Objects";
109 ot->idname =
"VIEW3D_OT_copybuffer";
110 ot->description =
"Copy the selected objects to the internal clipboard";
138 if (num_pasted == 0) {
155 ot->name =
"Paste Objects";
156 ot->idname =
"VIEW3D_OT_pastebuffer";
157 ot->description =
"Paste objects from the internal clipboard";
166 RNA_def_boolean(
ot->srna,
"autoselect",
true,
"Select",
"Select pasted objects");
171 "Put pasted objects in the active collection");
187#ifdef WITH_INPUT_NDOF
const char * BKE_tempdir_base() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL
int BKE_copybuffer_paste(bContext *C, const char *libname, int flag, ReportList *reports, uint64_t id_types_mask)
#define CTX_DATA_BEGIN(C, Type, instance, member)
Object * CTX_data_active_object(const bContext *C)
Main * CTX_data_main(const bContext *C)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BKE_report(ReportList *reports, eReportType type, const char *message)
#define LISTBASE_FOREACH(type, var, list)
#define BLI_path_join(...)
external readfile function prototypes.
@ BLO_LIBLINK_APPEND_SET_OB_ACTIVE_CLIPBOARD
Object is a sort of wrapper for general info.
@ OB_FLAG_ACTIVE_CLIPBOARD
void ED_outliner_select_sync_from_object_tag(bContext *C)
bool ED_operator_scene(bContext *C)
bool ED_operator_scene_editable(bContext *C)
ID * id_add(const ID *id, IDAddOptions options, blender::FunctionRef< IDAddOperations(LibraryIDLinkCallbackData *cb_data, IDAddOptions options)> dependencies_filter_cb=nullptr)
bool write(const char *write_filepath, int write_flags, int remap_mode, ReportList &reports)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
struct ReportList * reports
void VIEW3D_OT_view_persportho(wmOperatorType *ot)
void VIEW3D_OT_toggle_xray(wmOperatorType *ot)
void VIEW3D_OT_view_center_camera(wmOperatorType *ot)
void VIEW3D_OT_view_center_lock(wmOperatorType *ot)
void VIEW3D_OT_zoom_camera_1_to_1(wmOperatorType *ot)
void VIEW3D_OT_clip_border(wmOperatorType *ot)
void VIEW3D_OT_view_lock_to_active(wmOperatorType *ot)
void VIEW3D_OT_cursor3d(wmOperatorType *ot)
void VIEW3D_OT_clear_render_border(wmOperatorType *ot)
void VIEW3D_OT_view_lock_clear(wmOperatorType *ot)
void VIEW3D_OT_navigate(wmOperatorType *ot)
void VIEW3D_OT_camera_background_image_remove(wmOperatorType *ot)
void VIEW3D_OT_render_border(wmOperatorType *ot)
void VIEW3D_OT_toggle_shading(wmOperatorType *ot)
void VIEW3D_OT_drop_world(wmOperatorType *ot)
void VIEW3D_OT_camera_background_image_add(wmOperatorType *ot)
void VIEW3D_OT_ruler_remove(wmOperatorType *ot)
void VIEW3D_OT_ruler_add(wmOperatorType *ot)
void VIEW3D_OT_select(wmOperatorType *ot)
void VIEW3D_OT_localview(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_grid(wmOperatorType *ot)
void VIEW3D_OT_bone_select_menu(wmOperatorType *ot)
void VIEW3D_OT_select_box(wmOperatorType *ot)
void VIEW3D_OT_localview_remove_from(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view_selected(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_grid(wmOperatorType *ot)
void VIEW3D_OT_interactive_add(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_selected(wmOperatorType *ot)
void VIEW3D_OT_select_menu(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_center(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot)
void VIEW3D_OT_select_circle(wmOperatorType *ot)
void VIEW3D_OT_select_lasso(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_active(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view(wmOperatorType *ot)
void viewplace_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot)
void VIEW3D_OT_object_as_camera(wmOperatorType *ot)
void viewmove_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_view_roll(wmOperatorType *ot)
void VIEW3D_OT_view_axis(wmOperatorType *ot)
void VIEW3D_OT_view_orbit(wmOperatorType *ot)
void fly_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_walk(wmOperatorType *ot)
void VIEW3D_OT_zoom_border(wmOperatorType *ot)
void VIEW3D_OT_rotate(wmOperatorType *ot)
void VIEW3D_OT_view_pan(wmOperatorType *ot)
void VIEW3D_OT_view_all(wmOperatorType *ot)
void viewzoom_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_view_selected(wmOperatorType *ot)
void viewrotate_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_zoom(wmOperatorType *ot)
void VIEW3D_OT_view_camera(wmOperatorType *ot)
void viewdolly_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_view_center_pick(wmOperatorType *ot)
void VIEW3D_OT_view_center_cursor(wmOperatorType *ot)
void walk_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_fly(wmOperatorType *ot)
void VIEW3D_OT_move(wmOperatorType *ot)
void VIEW3D_OT_smoothview(wmOperatorType *ot)
void VIEW3D_OT_dolly(wmOperatorType *ot)
void view3d_keymap(wmKeyConfig *keyconf)
static wmOperatorStatus view3d_pastebuffer_exec(bContext *C, wmOperator *op)
static void VIEW3D_OT_pastebuffer(wmOperatorType *ot)
static void view3d_copybuffer_filepath_get(char filepath[FILE_MAX], size_t filepath_maxncpy)
static void VIEW3D_OT_copybuffer(wmOperatorType *ot)
void view3d_operatortypes()
static wmOperatorStatus view3d_copybuffer_exec(bContext *C, wmOperator *op)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))