57 if (gpf_cb(&gpf, scene)) {
74 if (
ELEM(
nullptr, gpl, elems)) {
115 if (gpf ==
nullptr) {
119 switch (select_mode) {
135 if (gpl ==
nullptr) {
148 if (gpl ==
nullptr) {
160 if (gpl ==
nullptr) {
173 if (gpl ==
nullptr) {
190 if (gpl ==
nullptr) {
235 bool changed =
false;
238 if (gpl ==
nullptr) {
256 if (gpl ==
nullptr) {
278 if (gpl ==
nullptr) {
319 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
339 ListBaseT<bGPDframe> copied_frames = {
nullptr,
nullptr};
357 if (copied_frames.is_empty() ==
false) {
358 bGPDlayer *new_layer = MEM_new<bGPDlayer>(
"GPCopyPasteLayer");
383 bool no_name =
false;
397 switch (offset_mode) {
412 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
418 if (anim_data.is_empty()) {
445 if (gpls ==
nullptr) {
501 gpf->framenum = int(
floor(gpf->framenum + 0.5));
509 float secf =
float(scene->frames_per_second());
595 static short initialized = 0;
606 if (gpf !=
nullptr) {
#define STRNCPY_UTF8(dst, src)
Read Blender memory allocation and freeing.
#define IN_RANGE(a, b, c)
IMETHOD Vector diff(const Vector &a, const Vector &b, double dt)
void WM_main_add_notifier(uint type, void *reference)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BKE_annotations_layer_active_set(struct bGPdata *gpd, struct bGPDlayer *active)
struct bGPDframe * BKE_annotations_layer_frame_get(struct bGPDlayer *gpl, int cframe, eGP_GetFrame_Mode addnew)
void ED_gpencil_layer_frames_select_region(KeyframeEditData *ked, bGPDlayer *gpl, short tool, short select_mode)
void ED_gpencil_layer_mirror_frames(bGPDlayer *gpl, Scene *scene, short mode)
static bool gpencil_frame_mirror_cframe(bGPDframe *gpf, Scene *scene)
void void void BLI_movelisttolist(ListBase *dst, ListBase *src) ATTR_NONNULL(1
@ KEYFRAME_PASTE_OFFSET_NONE
@ KEYFRAME_PASTE_OFFSET_CFRA_START
@ KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE
@ KEYFRAME_PASTE_OFFSET_CFRA_END
static bool gpencil_frame_mirror_xaxis(bGPDframe *gpf, Scene *)
struct bGPDframe * BKE_annotations_layer_frame_find(struct bGPDlayer *gpl, int cframe)
void ED_gpencil_layer_frame_select_set(bGPDlayer *gpl, short mode)
static int gpencil_anim_copy_firstframe
bool keyframe_region_lasso_test(const KeyframeEdit_LassoData *data_lasso, const float xy[2])
static bool gpencil_frame_snap_nearmarker(bGPDframe *gpf, Scene *scene)
static bool gpencil_frame_mirror_yaxis(bGPDframe *gpf, Scene *)
bool ED_gpencil_anim_copybuf_copy(bAnimContext *ac)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
@ ANIMFILTER_LIST_VISIBLE
@ ANIMFILTER_DATA_VISIBLE
void DEG_id_tag_update(ID *id, unsigned int flags)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void BKE_annotations_free_layers(ListBaseT< bGPDlayer > *list)
void ED_gpencil_layer_frames_select_box(bGPDlayer *gpl, float min, float max, short select_mode)
void ED_gpencil_select_frame(bGPDlayer *gpl, int selx, short select_mode)
bool ED_gpencil_layer_frame_select_check(const bGPDlayer *gpl)
static bool gpencil_frame_mirror_marker(bGPDframe *gpf, Scene *scene)
TimeMarker * ED_markers_get_first_selected(ListBaseT< TimeMarker > *markers)
void ED_gpencil_layer_frames_keytype_set(bGPDlayer *gpl, short type)
bool ED_gpencil_anim_copybuf_paste(bAnimContext *ac, const short offset_mode)
struct bGPDstroke * BKE_gpencil_stroke_duplicate(struct bGPDstroke *gps_src, bool dup_points, bool dup_curve)
bool ED_gpencil_layer_frames_delete(bGPDlayer *gpl)
struct bGPDlayer * BKE_annotations_layer_active_get(struct bGPdata *gpd)
static bool gpencil_frame_snap_nearest(bGPDframe *, Scene *)
static bool gpencil_frame_snap_cframe(bGPDframe *gpf, Scene *scene)
void ED_gpencil_layer_frames_duplicate(bGPDlayer *gpl)
void ED_gpencil_layer_make_cfra_list(bGPDlayer *gpl, ListBaseT< CfraElem > *elems, bool onlysel)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool keyframe_region_circle_test(const KeyframeEdit_CircleData *data_circle, const float xy[2])
int ED_markers_find_nearest_marker_time(ListBaseT< TimeMarker > *markers, float x)
void ED_gpencil_layer_snap_frames(bGPDlayer *gpl, Scene *scene, short mode)
void ANIM_animdata_freelist(ListBaseT< bAnimListElem > *anim_data)
bool BKE_annotations_layer_frame_delete(struct bGPDlayer *gpl, struct bGPDframe *gpf)
void ED_gpencil_anim_copybuf_free()
static int gpencil_anim_copy_cfra
static ListBaseT< bGPDlayer > gpencil_anim_copybuf
static int gpencil_anim_copy_lastframe
void ED_gpencil_select_frames(bGPDlayer *gpl, short select_mode)
void ED_gpencil_set_active_channel(bGPdata *gpd, bGPDlayer *gpl)
static void gpencil_frame_select(bGPDframe *gpf, short select_mode)
bool ED_gpencil_layer_frames_looper(bGPDlayer *gpl, Scene *scene, bool(*gpf_cb)(bGPDframe *, Scene *))
static bool gpencil_frame_snap_nearestsec(bGPDframe *gpf, Scene *scene)
struct bGPDframe * BKE_annotations_frame_duplicate(const struct bGPDframe *gpf_src, bool dup_strokes)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< TimeMarker > markers
ListBaseT< bGPDstroke > strokes
ListBaseT< bGPDframe > frames