Code cleanup:
calc_manipulator_stats is only used in manipulator (and soon will only use the context for such queries)
This commit is contained in:
@@ -2054,7 +2054,6 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
||||
initTransInfo(C, t, op, event);
|
||||
|
||||
if (t->spacetype == SPACE_VIEW3D) {
|
||||
//calc_manipulator_stats(curarea);
|
||||
initTransformOrientation(C, t);
|
||||
|
||||
t->draw_handle_apply = ED_region_draw_cb_activate(t->ar->type, drawTransformApply, t, REGION_DRAW_PRE_VIEW);
|
||||
|
||||
@@ -537,7 +537,6 @@ void restoreBones(TransInfo *t);
|
||||
|
||||
/*********************** exported from transform_manipulator.c ********** */
|
||||
bool gimbal_axis(struct Object *ob, float gmat[3][3]); /* return 0 when no gimbal for selection */
|
||||
int calc_manipulator_stats(const struct bContext *C);
|
||||
|
||||
/*********************** TransData Creation and General Handling *********** */
|
||||
void createTransData(struct bContext *C, TransInfo *t);
|
||||
|
||||
@@ -262,7 +262,7 @@ bool gimbal_axis(Object *ob, float gmat[3][3])
|
||||
|
||||
/* centroid, boundbox, of selection */
|
||||
/* returns total items selected */
|
||||
int calc_manipulator_stats(const bContext *C)
|
||||
static int calc_manipulator_stats(const bContext *C)
|
||||
{
|
||||
ScrArea *sa = CTX_wm_area(C);
|
||||
ARegion *ar = CTX_wm_region(C);
|
||||
|
||||
Reference in New Issue
Block a user