67 Object *obact_copy =
nullptr;
76 "Cannot copy the linked object '%s' to the internal clipboard",
87 "Cannot copy the linked packed object '%s' to the internal clipboard",
94 (PartialWriteContext::IDAddOperations::SET_FAKE_USER |
95 PartialWriteContext::IDAddOperations::SET_CLIPBOARD_MARK |
96 PartialWriteContext::IDAddOperations::ADD_DEPENDENCIES)},
99 if (obact && (obact == ob)) {
100 obact_copy =
reinterpret_cast<Object *
>(ob_id_copy);
116 if (num_copied == 0) {
137 ot->
name =
"Copy Objects";
138 ot->
idname =
"VIEW3D_OT_copybuffer";
139 ot->
description =
"Copy the selected objects to the internal clipboard";
167 if (num_pasted == 0) {
185 ot->
name =
"Paste Objects";
186 ot->
idname =
"VIEW3D_OT_pastebuffer";
187 ot->
description =
"Paste objects from the internal clipboard";
201 "Put pasted objects in the active collection");
219#ifdef WITH_INPUT_NDOF
#define CTX_DATA_BEGIN(C, Type, instance, member)
#define BLI_path_join(...)
external readfile function prototypes.
#define ID_IS_PACKED(_id)
#define ID_IS_LINKED(_id)
Object is a sort of wrapper for general info.
ID * id_add(const ID *id, IDAddOptions options, FunctionRef< IDAddOperations(LibraryIDLinkCallbackData *cb_data, IDAddOptions options)> dependencies_filter_cb=nullptr)
bool write_as_copypaste_buffer(const char *write_filepath, ReportList &reports)
void VIEW3D_OT_view_axis(wmOperatorType *ot)
void VIEW3D_OT_view_selected(wmOperatorType *ot)
void viewdolly_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_view_roll_set(wmOperatorType *ot)
void view3d_operatortypes()
void VIEW3D_OT_view_orbit(wmOperatorType *ot)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
bool ED_operator_scene_editable(bContext *C)
void VIEW3D_OT_view_center_lock(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_active(wmOperatorType *ot)
void VIEW3D_OT_smoothview(wmOperatorType *ot)
void VIEW3D_OT_clear_render_border(wmOperatorType *ot)
void VIEW3D_OT_object_as_camera(wmOperatorType *ot)
void VIEW3D_OT_view_persportho(wmOperatorType *ot)
void VIEW3D_OT_zoom_border(wmOperatorType *ot)
void VIEW3D_OT_clip_border(wmOperatorType *ot)
void VIEW3D_OT_localview(wmOperatorType *ot)
void VIEW3D_OT_localview_remove_from(wmOperatorType *ot)
void viewrotate_modal_keymap(wmKeyConfig *keyconf)
void viewmove_modal_keymap(wmKeyConfig *keyconf)
@ OB_FLAG_ACTIVE_CLIPBOARD
void VIEW3D_OT_view_lock_clear(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot)
void VIEW3D_OT_toggle_shading(wmOperatorType *ot)
void VIEW3D_OT_view_lock_to_active(wmOperatorType *ot)
void VIEW3D_OT_object_mode_pie_or_toggle(wmOperatorType *ot)
void VIEW3D_OT_select_circle(wmOperatorType *ot)
void VIEW3D_OT_view_all(wmOperatorType *ot)
void VIEW3D_OT_move(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view_selected(wmOperatorType *ot)
const char * BKE_id_name(const ID &id)
void VIEW3D_OT_rotate(wmOperatorType *ot)
@ BLO_LIBLINK_APPEND_SET_OB_ACTIVE_CLIPBOARD
bool ED_operator_scene(bContext *C)
void VIEW3D_OT_view_center_camera(wmOperatorType *ot)
void VIEW3D_OT_view_camera(wmOperatorType *ot)
void vr_location_scouting_capture_review_modal_keymap(wmKeyConfig *keyconf)
void ED_outliner_select_sync_from_object_tag(bContext *C)
void VIEW3D_OT_select(wmOperatorType *ot)
static wmOperatorStatus view3d_copybuffer_exec(bContext *C, wmOperator *op)
void VIEW3D_OT_navigate(wmOperatorType *ot)
void VIEW3D_OT_zoom(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_grid(wmOperatorType *ot)
void VIEW3D_OT_bone_select_menu(wmOperatorType *ot)
void VIEW3D_OT_cursor3d(wmOperatorType *ot)
void VIEW3D_OT_render_border(wmOperatorType *ot)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void viewzoom_modal_keymap(wmKeyConfig *keyconf)
void view3d_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_ruler_remove(wmOperatorType *ot)
void VIEW3D_OT_dolly(wmOperatorType *ot)
void viewplace_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_zoom_camera_1_to_1(wmOperatorType *ot)
void VIEW3D_OT_select_lasso(wmOperatorType *ot)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
void VIEW3D_OT_toggle_matcap_flip(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void VIEW3D_OT_view_center_pick(wmOperatorType *ot)
void VIEW3D_OT_vr_location_scouting_capture_review(wmOperatorType *ot)
const char * BKE_tempdir_base() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL
void VIEW3D_OT_fly(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_grid(wmOperatorType *ot)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void VIEW3D_OT_view_flip(wmOperatorType *ot)
void VIEW3D_OT_view_pan(wmOperatorType *ot)
static wmOperatorStatus view3d_pastebuffer_exec(bContext *C, wmOperator *op)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
Main * CTX_data_main(const bContext *C)
void VIEW3D_OT_toggle_xray(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view(wmOperatorType *ot)
void VIEW3D_OT_interactive_add(wmOperatorType *ot)
void VIEW3D_OT_view_center_cursor(wmOperatorType *ot)
void VIEW3D_OT_ruler_add(wmOperatorType *ot)
int BKE_copybuffer_paste(bContext *C, const char *libname, int flag, ReportList *reports, uint64_t id_types_mask)
void VIEW3D_OT_camera_background_image_remove(wmOperatorType *ot)
static void VIEW3D_OT_copybuffer(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_center(wmOperatorType *ot)
void VIEW3D_OT_view_roll(wmOperatorType *ot)
void VIEW3D_OT_select_box(wmOperatorType *ot)
void VIEW3D_OT_walk(wmOperatorType *ot)
void fly_modal_keymap(wmKeyConfig *keyconf)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
static void VIEW3D_OT_pastebuffer(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_selected(wmOperatorType *ot)
void VIEW3D_OT_drop_world(wmOperatorType *ot)
Object * CTX_data_active_object(const bContext *C)
void VIEW3D_OT_camera_background_image_add(wmOperatorType *ot)
void walk_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_select_menu(wmOperatorType *ot)
static void view3d_copybuffer_filepath_get(char filepath[FILE_MAX], size_t filepath_maxncpy)
ListBaseT< Object > objects
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports