Blender  V3.3
object_shapekey.c File Reference
#include <math.h>
#include <string.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BKE_context.h"
#include "BKE_crazyspace.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "BLI_sys_types.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "object_intern.h"

Go to the source code of this file.

Functions

Add Shape Key Function
static void ED_object_shape_key_add (bContext *C, Object *ob, const bool from_mix)
 
Remove Shape Key Function
static bool object_shapekey_remove (Main *bmain, Object *ob)
 
static bool object_shape_key_mirror (bContext *C, Object *ob, int *r_totmirr, int *r_totfail, bool use_topology)
 
Shared Poll Functions
static bool shape_key_poll (bContext *C)
 
static bool shape_key_mode_poll (bContext *C)
 
static bool shape_key_mode_exists_poll (bContext *C)
 
static bool shape_key_move_poll (bContext *C)
 
Shape Key Add Operator
static int shape_key_add_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_shape_key_add (wmOperatorType *ot)
 
Shape Key Remove Operator
static int shape_key_remove_exec (bContext *C, wmOperator *op)
 
static bool shape_key_remove_poll_property (const bContext *UNUSED(C), wmOperator *op, const PropertyRNA *prop)
 
static char * shape_key_remove_get_description (bContext *UNUSED(C), wmOperatorType *UNUSED(ot), PointerRNA *ptr)
 
void OBJECT_OT_shape_key_remove (wmOperatorType *ot)
 
Shape Key Clear Operator
static int shape_key_clear_exec (bContext *C, wmOperator *UNUSED(op))
 
void OBJECT_OT_shape_key_clear (wmOperatorType *ot)
 
static int shape_key_retime_exec (bContext *C, wmOperator *UNUSED(op))
 
void OBJECT_OT_shape_key_retime (wmOperatorType *ot)
 
Shape Key Mirror Operator
static int shape_key_mirror_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_shape_key_mirror (wmOperatorType *ot)
 

Shape Key Move (Re-Order) Operator

enum  { KB_MOVE_TOP = -2 , KB_MOVE_UP = -1 , KB_MOVE_DOWN = 1 , KB_MOVE_BOTTOM = 2 }
 
static int shape_key_move_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_shape_key_move (wmOperatorType *ot)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
KB_MOVE_TOP 
KB_MOVE_UP 
KB_MOVE_DOWN 
KB_MOVE_BOTTOM 

Definition at line 506 of file object_shapekey.c.

Function Documentation

◆ ED_object_shape_key_add()

static void ED_object_shape_key_add ( bContext C,
Object ob,
const bool  from_mix 
)
static

◆ OBJECT_OT_shape_key_add()

void OBJECT_OT_shape_key_add ( wmOperatorType ot)

◆ OBJECT_OT_shape_key_clear()

void OBJECT_OT_shape_key_clear ( wmOperatorType ot)

◆ OBJECT_OT_shape_key_mirror()

void OBJECT_OT_shape_key_mirror ( wmOperatorType ot)

◆ OBJECT_OT_shape_key_move()

void OBJECT_OT_shape_key_move ( wmOperatorType ot)

◆ OBJECT_OT_shape_key_remove()

void OBJECT_OT_shape_key_remove ( wmOperatorType ot)

◆ OBJECT_OT_shape_key_retime()

void OBJECT_OT_shape_key_retime ( wmOperatorType ot)

◆ object_shape_key_mirror()

static bool object_shape_key_mirror ( bContext C,
Object ob,
int *  r_totmirr,
int *  r_totfail,
bool  use_topology 
)
static

◆ object_shapekey_remove()

static bool object_shapekey_remove ( Main bmain,
Object ob 
)
static

◆ shape_key_add_exec()

static int shape_key_add_exec ( bContext C,
wmOperator op 
)
static

◆ shape_key_clear_exec()

static int shape_key_clear_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ shape_key_mirror_exec()

static int shape_key_mirror_exec ( bContext C,
wmOperator op 
)
static

◆ shape_key_mode_exists_poll()

static bool shape_key_mode_exists_poll ( bContext C)
static

◆ shape_key_mode_poll()

static bool shape_key_mode_poll ( bContext C)
static

◆ shape_key_move_exec()

static int shape_key_move_exec ( bContext C,
wmOperator op 
)
static

◆ shape_key_move_poll()

static bool shape_key_move_poll ( bContext C)
static

◆ shape_key_poll()

static bool shape_key_poll ( bContext C)
static

◆ shape_key_remove_exec()

static int shape_key_remove_exec ( bContext C,
wmOperator op 
)
static

◆ shape_key_remove_get_description()

static char* shape_key_remove_get_description ( bContext UNUSEDC,
wmOperatorType UNUSEDot,
PointerRNA ptr 
)
static

Definition at line 338 of file object_shapekey.c.

References BLI_strdup(), NULL, ptr, RNA_boolean_get(), and TIP_.

Referenced by OBJECT_OT_shape_key_remove().

◆ shape_key_remove_poll_property()

static bool shape_key_remove_poll_property ( const bContext UNUSEDC,
wmOperator op,
const PropertyRNA prop 
)
static

◆ shape_key_retime_exec()

static int shape_key_retime_exec ( bContext C,
wmOperator UNUSEDop 
)
static