Blender V2.61 - r43446
Functions

object_hook.c File Reference

#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_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_depsgraph.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_deform.h"
#include "RNA_define.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "ED_curve.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "WM_types.h"
#include "WM_api.h"
#include "UI_resources.h"
#include "object_intern.h"

Go to the source code of this file.

Functions

static int return_editmesh_indexar (EditMesh *em, int *tot, int **indexar, float *cent)
static int return_editmesh_vgroup (Object *obedit, EditMesh *em, char *name, float *cent)
static void select_editmesh_hook (Object *ob, HookModifierData *hmd)
static int return_editlattice_indexar (Lattice *editlatt, int *tot, int **indexar, float *cent)
static void select_editlattice_hook (Object *obedit, HookModifierData *hmd)
static int return_editcurve_indexar (Object *obedit, int *tot, int **indexar, float *cent)
static int object_hook_index_array (Scene *scene, Object *obedit, int *tot, int **indexar, char *name, float *cent_r)
static void select_editcurve_hook (Object *obedit, HookModifierData *hmd)
static void object_hook_select (Object *ob, HookModifierData *hmd)
static int hook_op_edit_poll (bContext *C)
static Objectadd_hook_object_new (Scene *scene, Object *obedit)
static void add_hook_object (Main *bmain, Scene *scene, Object *obedit, Object *ob, int mode)
static int object_add_hook_selob_exec (bContext *C, wmOperator *op)
void OBJECT_OT_hook_add_selobj (wmOperatorType *ot)
static int object_add_hook_newob_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_hook_add_newobj (wmOperatorType *ot)
static int object_hook_remove_exec (bContext *C, wmOperator *op)
static EnumPropertyItemhook_mod_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *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)

Detailed Description

Definition in file object_hook.c.


Function Documentation

static void add_hook_object ( Main bmain,
Scene scene,
Object obedit,
Object ob,
int  mode 
) [static]
static Object* add_hook_object_new ( Scene scene,
Object obedit 
) [static]

Definition at line 407 of file object_hook.c.

References add_object(), Scene::basact, Object::lay, Base::lay, OB_EMPTY, and object_in_scene().

Referenced by add_hook_object().

static EnumPropertyItem* hook_mod_itemf ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
int *  free 
) [static]
static int hook_op_edit_poll ( bContext C) [static]
static int object_add_hook_newob_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int object_add_hook_selob_exec ( bContext C,
wmOperator op 
) [static]
static int object_hook_assign_exec ( bContext C,
wmOperator op 
) [static]
static int object_hook_index_array ( Scene scene,
Object obedit,
int *  tot,
int **  indexar,
char *  name,
float *  cent_r 
) [static]
static int object_hook_recenter_exec ( bContext C,
wmOperator op 
) [static]
static int object_hook_remove_exec ( bContext C,
wmOperator op 
) [static]
static int object_hook_reset_exec ( bContext C,
wmOperator op 
) [static]
static void object_hook_select ( Object ob,
HookModifierData hmd 
) [static]
static int object_hook_select_exec ( bContext C,
wmOperator op 
) [static]
void OBJECT_OT_hook_add_newobj ( wmOperatorType ot)
void OBJECT_OT_hook_add_selobj ( wmOperatorType ot)
void OBJECT_OT_hook_assign ( wmOperatorType ot)
void OBJECT_OT_hook_recenter ( wmOperatorType ot)
void OBJECT_OT_hook_remove ( wmOperatorType ot)
void OBJECT_OT_hook_reset ( wmOperatorType ot)
void OBJECT_OT_hook_select ( wmOperatorType ot)
static int return_editcurve_indexar ( Object obedit,
int *  tot,
int **  indexar,
float *  cent 
) [static]
static int return_editlattice_indexar ( Lattice editlatt,
int *  tot,
int **  indexar,
float *  cent 
) [static]
static int return_editmesh_indexar ( EditMesh em,
int *  tot,
int **  indexar,
float *  cent 
) [static]
static int return_editmesh_vgroup ( Object obedit,
EditMesh em,
char *  name,
float *  cent 
) [static]
static void select_editcurve_hook ( Object obedit,
HookModifierData hmd 
) [static]
static void select_editlattice_hook ( Object obedit,
HookModifierData hmd 
) [static]
static void select_editmesh_hook ( Object ob,
HookModifierData hmd 
) [static]