Cleanup: use doxy groups
This commit is contained in:
parent
e6f8f18902
commit
4a2d1953f3
|
@ -77,7 +77,9 @@
|
|||
|
||||
#include "object_intern.h"
|
||||
|
||||
/*************************** Clear Transformation ****************************/
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Clear Transformation Utilities
|
||||
* \{ */
|
||||
|
||||
/* clear location of object */
|
||||
static void object_clear_loc(Object *ob, const bool clear_delta)
|
||||
|
@ -284,8 +286,6 @@ static void object_clear_scale(Object *ob, const bool clear_delta)
|
|||
}
|
||||
}
|
||||
|
||||
/* --------------- */
|
||||
|
||||
/* generic exec for clear-transform operators */
|
||||
static int object_clear_transform_generic_exec(bContext *C,
|
||||
wmOperator *op,
|
||||
|
@ -329,7 +329,11 @@ static int object_clear_transform_generic_exec(bContext *C,
|
|||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
/* --------------- */
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Clear Location Operator
|
||||
* \{ */
|
||||
|
||||
static int object_location_clear_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
|
@ -359,6 +363,12 @@ void OBJECT_OT_location_clear(wmOperatorType *ot)
|
|||
"Clear delta location in addition to clearing the normal location transform");
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Clear Rotation Operator
|
||||
* \{ */
|
||||
|
||||
static int object_rotation_clear_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
return object_clear_transform_generic_exec(C, op, object_clear_rot, ANIM_KS_ROTATION_ID);
|
||||
|
@ -387,6 +397,12 @@ void OBJECT_OT_rotation_clear(wmOperatorType *ot)
|
|||
"Clear delta rotation in addition to clearing the normal rotation transform");
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Clear Scale Operator
|
||||
* \{ */
|
||||
|
||||
static int object_scale_clear_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
return object_clear_transform_generic_exec(C, op, object_clear_scale, ANIM_KS_SCALING_ID);
|
||||
|
@ -415,7 +431,11 @@ void OBJECT_OT_scale_clear(wmOperatorType *ot)
|
|||
"Clear delta scale in addition to clearing the normal scale transform");
|
||||
}
|
||||
|
||||
/* --------------- */
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Clear Origin Operator
|
||||
* \{ */
|
||||
|
||||
static int object_origin_clear_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
{
|
||||
|
@ -457,7 +477,11 @@ void OBJECT_OT_origin_clear(wmOperatorType *ot)
|
|||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
}
|
||||
|
||||
/*************************** Apply Transformation ****************************/
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Apply Transformation Operator
|
||||
* \{ */
|
||||
|
||||
/* use this when the loc/size/rot of the parent has changed but the children
|
||||
* should stay in the same place, e.g. for apply-size-rot or object center */
|
||||
|
@ -960,7 +984,11 @@ void OBJECT_OT_transform_apply(wmOperatorType *ot)
|
|||
"Modify properties such as curve vertex radius, font size and bone envelope");
|
||||
}
|
||||
|
||||
/********************* Set Object Center ************************/
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Set Object Center Operator
|
||||
* \{ */
|
||||
|
||||
enum {
|
||||
GEOMETRY_TO_ORIGIN = 0,
|
||||
|
@ -1152,7 +1180,8 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
|
|||
else if (ELEM(ob->type, OB_CURVE, OB_SURF)) {
|
||||
Curve *cu = ob->data;
|
||||
|
||||
if (centermode == ORIGIN_TO_CURSOR) { /* done */
|
||||
if (centermode == ORIGIN_TO_CURSOR) {
|
||||
/* done */
|
||||
}
|
||||
else if (around == V3D_AROUND_CENTER_MEDIAN) {
|
||||
BKE_curve_center_median(cu, cent);
|
||||
|
@ -1244,7 +1273,8 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
|
|||
else if (ob->type == OB_MBALL) {
|
||||
MetaBall *mb = ob->data;
|
||||
|
||||
if (centermode == ORIGIN_TO_CURSOR) { /* done */
|
||||
if (centermode == ORIGIN_TO_CURSOR) {
|
||||
/* done */
|
||||
}
|
||||
else if (around == V3D_AROUND_CENTER_MEDIAN) {
|
||||
BKE_mball_center_median(mb, cent);
|
||||
|
@ -1270,7 +1300,8 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
|
|||
else if (ob->type == OB_LATTICE) {
|
||||
Lattice *lt = ob->data;
|
||||
|
||||
if (centermode == ORIGIN_TO_CURSOR) { /* done */
|
||||
if (centermode == ORIGIN_TO_CURSOR) {
|
||||
/* done */
|
||||
}
|
||||
else if (around == V3D_AROUND_CENTER_MEDIAN) {
|
||||
BKE_lattice_center_median(lt, cent);
|
||||
|
@ -1509,6 +1540,8 @@ void OBJECT_OT_origin_set(wmOperatorType *ot)
|
|||
RNA_def_enum(ot->srna, "center", prop_set_bounds_types, V3D_AROUND_CENTER_MEDIAN, "Center", "");
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Transform Axis Target
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue