WIP: Onion Skinning Prototype #107641

Closed
Christoph Lendenfeld wants to merge 22 commits from ChrisLend/blender:onion_skin_test into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 41 additions and 0 deletions
Showing only changes of commit 3a439111f9 - Show all commits

View File

@ -0,0 +1,41 @@
#include "BKE_context.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "ED_onion_skin.h"
#include "MEM_guardedalloc.h"
#include "WM_types.h"
static void add_exec(bContext *C, wmOperator *op)
{
Object *ob = CTX_data_active_object(C);
ListBase selected = {NULL, NULL};
CTX_data_selected_objects(C, &selected);
Scene *scene = CTX_data_scene(C);
BLI_freelistN(&selected);
}
static void ANIM_OT_onion_skin_add(wmOperatorType *ot)
{
/* identifiers */
ot->name = "Add Onion Skin";
ot->description = "foobar";
ot->idname = "ANIM_OT_onion_skin_add";
/* api callbacks */
ot->exec = add_exec;
/* ot->cancel = WM_gesture_box_cancel; */
/* ot->poll = ed_markers_poll_markers_exist; */
/* flags */
ot->flag = OPTYPE_UNDO | OPTYPE_REGISTER;
/* properties */
}
ED_operatortypes_onion_skin(void)
{
WM_operatortype_append(ANIM_OT_onion_skin_add);
}