Blender  V3.3
Functions
object_hook.c File Reference
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "DNA_armature_types.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_action.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_editmesh.h"
#include "BKE_layer.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "ED_curve.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_resources.h"
#include "object_intern.h"

Go to the source code of this file.

Functions

static int return_editmesh_indexar (BMEditMesh *em, int *r_indexar_num, int **r_indexar, float r_cent[3])
 
static bool return_editmesh_vgroup (Object *obedit, BMEditMesh *em, char *r_name, float r_cent[3])
 
static void select_editbmesh_hook (Object *ob, HookModifierData *hmd)
 
static int return_editlattice_indexar (Lattice *editlatt, int **r_indexar, int *r_indexar_num, float r_cent[3])
 
static void select_editlattice_hook (Object *obedit, HookModifierData *hmd)
 
static int return_editcurve_indexar (Object *obedit, int **r_indexar, int *r_indexar_num, float r_cent[3])
 
static bool object_hook_index_array (Main *bmain, Scene *scene, Object *obedit, int **r_indexar, int *r_indexar_num, char *r_name, float r_cent[3])
 
static void select_editcurve_hook (Object *obedit, HookModifierData *hmd)
 
static void object_hook_from_context (bContext *C, PointerRNA *ptr, const int num, Object **r_ob, HookModifierData **r_hmd)
 
static void object_hook_select (Object *ob, HookModifierData *hmd)
 
static bool hook_op_edit_poll (bContext *C)
 
static Objectadd_hook_object_new (Main *bmain, ViewLayer *view_layer, View3D *v3d, Object *obedit)
 
static int add_hook_object (const bContext *C, Main *bmain, Scene *scene, ViewLayer *view_layer, View3D *v3d, Object *obedit, Object *ob, int mode, ReportList *reports)
 
static int object_add_hook_selob_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_hook_add_selob (wmOperatorType *ot)
 
static int object_add_hook_newob_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_hook_add_newob (wmOperatorType *ot)
 
static int object_hook_remove_exec (bContext *C, wmOperator *op)
 
static const EnumPropertyItemhook_mod_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
 
void OBJECT_OT_hook_remove (wmOperatorType *ot)
 
static int object_hook_reset_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_hook_reset (wmOperatorType *ot)
 
static int object_hook_recenter_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_hook_recenter (wmOperatorType *ot)
 
static int object_hook_assign_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_hook_assign (wmOperatorType *ot)
 
static int object_hook_select_exec (bContext *C, wmOperator *op)
 
void OBJECT_OT_hook_select (wmOperatorType *ot)
 

Function Documentation

◆ add_hook_object()

static int add_hook_object ( const bContext C,
Main bmain,
Scene scene,
ViewLayer view_layer,
View3D v3d,
Object obedit,
Object ob,
int  mode,
ReportList reports 
)
static

◆ add_hook_object_new()

static Object* add_hook_object_new ( Main bmain,
ViewLayer view_layer,
View3D v3d,
Object obedit 
)
static

◆ hook_mod_itemf()

static const EnumPropertyItem* hook_mod_itemf ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
bool r_free 
)
static

◆ hook_op_edit_poll()

static bool hook_op_edit_poll ( bContext C)
static

◆ object_add_hook_newob_exec()

static int object_add_hook_newob_exec ( bContext C,
wmOperator op 
)
static

◆ object_add_hook_selob_exec()

static int object_add_hook_selob_exec ( bContext C,
wmOperator op 
)
static

◆ object_hook_assign_exec()

static int object_hook_assign_exec ( bContext C,
wmOperator op 
)
static

◆ object_hook_from_context()

static void object_hook_from_context ( bContext C,
PointerRNA ptr,
const int  num,
Object **  r_ob,
HookModifierData **  r_hmd 
)
static

◆ object_hook_index_array()

static bool object_hook_index_array ( Main bmain,
Scene scene,
Object obedit,
int **  r_indexar,
int *  r_indexar_num,
char *  r_name,
float  r_cent[3] 
)
static

◆ object_hook_recenter_exec()

static int object_hook_recenter_exec ( bContext C,
wmOperator op 
)
static

◆ object_hook_remove_exec()

static int object_hook_remove_exec ( bContext C,
wmOperator op 
)
static

◆ object_hook_reset_exec()

static int object_hook_reset_exec ( bContext C,
wmOperator op 
)
static

◆ object_hook_select()

static void object_hook_select ( Object ob,
HookModifierData hmd 
)
static

◆ object_hook_select_exec()

static int object_hook_select_exec ( bContext C,
wmOperator op 
)
static

◆ OBJECT_OT_hook_add_newob()

void OBJECT_OT_hook_add_newob ( wmOperatorType ot)

◆ OBJECT_OT_hook_add_selob()

void OBJECT_OT_hook_add_selob ( wmOperatorType ot)

◆ OBJECT_OT_hook_assign()

void OBJECT_OT_hook_assign ( wmOperatorType ot)

◆ OBJECT_OT_hook_recenter()

void OBJECT_OT_hook_recenter ( wmOperatorType ot)

◆ OBJECT_OT_hook_remove()

void OBJECT_OT_hook_remove ( wmOperatorType ot)

◆ OBJECT_OT_hook_reset()

void OBJECT_OT_hook_reset ( wmOperatorType ot)

◆ OBJECT_OT_hook_select()

void OBJECT_OT_hook_select ( wmOperatorType ot)

◆ return_editcurve_indexar()

static int return_editcurve_indexar ( Object obedit,
int **  r_indexar,
int *  r_indexar_num,
float  r_cent[3] 
)
static

◆ return_editlattice_indexar()

static int return_editlattice_indexar ( Lattice editlatt,
int **  r_indexar,
int *  r_indexar_num,
float  r_cent[3] 
)
static

◆ return_editmesh_indexar()

static int return_editmesh_indexar ( BMEditMesh em,
int *  r_indexar_num,
int **  r_indexar,
float  r_cent[3] 
)
static

◆ return_editmesh_vgroup()

static bool return_editmesh_vgroup ( Object obedit,
BMEditMesh em,
char *  r_name,
float  r_cent[3] 
)
static

◆ select_editbmesh_hook()

static void select_editbmesh_hook ( Object ob,
HookModifierData hmd 
)
static

◆ select_editcurve_hook()

static void select_editcurve_hook ( Object obedit,
HookModifierData hmd 
)
static

◆ select_editlattice_hook()

static void select_editlattice_hook ( Object obedit,
HookModifierData hmd 
)
static