Blender  V3.3
Classes | Typedefs | Enumerations | Functions
pose_lib_2.c File Reference
#include <math.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLT_translation.h"
#include "DNA_armature_types.h"
#include "BKE_action.h"
#include "BKE_anim_data.h"
#include "BKE_animsys.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_lib_id.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "ED_armature.h"
#include "ED_asset.h"
#include "ED_keyframing.h"
#include "ED_screen.h"
#include "armature_intern.h"

Go to the source code of this file.

Classes

struct  PoseBlendData
 

Typedefs

typedef enum ePoseBlendState ePoseBlendState
 
typedef struct PoseBlendData PoseBlendData
 

Enumerations

enum  ePoseBlendState {
  POSE_BLEND_INIT , POSE_BLEND_BLENDING , POSE_BLEND_ORIGINAL , POSE_BLEND_CONFIRM ,
  POSE_BLEND_CANCEL
}
 

Functions

static void poselib_backup_posecopy (PoseBlendData *pbd)
 
static void poselib_keytag_pose (bContext *C, Scene *scene, PoseBlendData *pbd)
 
static void poselib_blend_apply (bContext *C, wmOperator *op)
 
static void poselib_blend_set_factor (PoseBlendData *pbd, const float new_factor)
 
static void poselib_slide_mouse_update_blendfactor (PoseBlendData *pbd, const wmEvent *event)
 
static int poselib_blend_handle_event (bContext *UNUSED(C), wmOperator *op, const wmEvent *event)
 
static void poselib_blend_cursor_update (bContext *C, wmOperator *op)
 
static Objectget_poselib_object (bContext *C)
 
static void poselib_tempload_exit (PoseBlendData *pbd)
 
static bActionposelib_blend_init_get_action (bContext *C, wmOperator *op)
 
static bActionflip_pose (bContext *C, Object *ob, bAction *action)
 
static bool poselib_blend_init_data (bContext *C, wmOperator *op, const wmEvent *event)
 
static void poselib_blend_cleanup (bContext *C, wmOperator *op)
 
static void poselib_blend_free (wmOperator *op)
 
static int poselib_blend_exit (bContext *C, wmOperator *op)
 
static void poselib_blend_cancel (bContext *C, wmOperator *op)
 
static int poselib_blend_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int poselib_blend_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static int poselib_blend_exec (bContext *C, wmOperator *op)
 
static bool poselib_asset_in_context (bContext *C)
 
static bool poselib_blend_poll (bContext *C)
 
void POSELIB_OT_apply_pose_asset (wmOperatorType *ot)
 
void POSELIB_OT_blend_pose_asset (wmOperatorType *ot)
 

Typedef Documentation

◆ ePoseBlendState

◆ PoseBlendData

typedef struct PoseBlendData PoseBlendData

Enumeration Type Documentation

◆ ePoseBlendState

Enumerator
POSE_BLEND_INIT 
POSE_BLEND_BLENDING 
POSE_BLEND_ORIGINAL 
POSE_BLEND_CONFIRM 
POSE_BLEND_CANCEL 

Definition at line 47 of file pose_lib_2.c.

Function Documentation

◆ flip_pose()

static bAction* flip_pose ( bContext C,
Object ob,
bAction action 
)
static

◆ get_poselib_object()

static Object* get_poselib_object ( bContext C)
static

◆ poselib_asset_in_context()

static bool poselib_asset_in_context ( bContext C)
static

◆ poselib_backup_posecopy()

static void poselib_backup_posecopy ( PoseBlendData pbd)
static

◆ poselib_blend_apply()

static void poselib_blend_apply ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_cancel()

static void poselib_blend_cancel ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_cleanup()

static void poselib_blend_cleanup ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_cursor_update()

static void poselib_blend_cursor_update ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_exec()

static int poselib_blend_exec ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_exit()

static int poselib_blend_exit ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_free()

static void poselib_blend_free ( wmOperator op)
static

◆ poselib_blend_handle_event()

static int poselib_blend_handle_event ( bContext UNUSEDC,
wmOperator op,
const wmEvent event 
)
static

◆ poselib_blend_init_data()

static bool poselib_blend_init_data ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ poselib_blend_init_get_action()

static bAction* poselib_blend_init_get_action ( bContext C,
wmOperator op 
)
static

◆ poselib_blend_invoke()

static int poselib_blend_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ poselib_blend_modal()

static int poselib_blend_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ poselib_blend_poll()

static bool poselib_blend_poll ( bContext C)
static

◆ poselib_blend_set_factor()

static void poselib_blend_set_factor ( PoseBlendData pbd,
const float  new_factor 
)
static

◆ poselib_keytag_pose()

static void poselib_keytag_pose ( bContext C,
Scene scene,
PoseBlendData pbd 
)
static

◆ POSELIB_OT_apply_pose_asset()

void POSELIB_OT_apply_pose_asset ( wmOperatorType ot)

◆ POSELIB_OT_blend_pose_asset()

void POSELIB_OT_blend_pose_asset ( wmOperatorType ot)

◆ poselib_slide_mouse_update_blendfactor()

static void poselib_slide_mouse_update_blendfactor ( PoseBlendData pbd,
const wmEvent event 
)
static

◆ poselib_tempload_exit()

static void poselib_tempload_exit ( PoseBlendData pbd)
static

Definition at line 282 of file pose_lib_2.c.

References ED_asset_temp_id_consumer_free(), and PoseBlendData::temp_id_consumer.

Referenced by poselib_blend_free().