Manipulator: remove unused event hack

This commit is contained in:
Campbell Barton
2017-08-24 12:02:08 +10:00
parent efd07aaada
commit 134e927965
2 changed files with 0 additions and 6 deletions

View File

@@ -366,9 +366,6 @@ static int manipulator_tweak_modal(bContext *C, wmOperator *op, const wmEvent *e
mpr->type->modal(C, mpr, event, mtweak->flag);
}
/* Ugly hack to send manipulator events */
((wmEvent *)event)->type = EVT_MANIPULATOR_UPDATE;
/* always return PASS_THROUGH so modal handlers
* with manipulators attached can update */
return OPERATOR_PASS_THROUGH;

View File

@@ -338,9 +338,6 @@ enum {
EVT_MODAL_MAP = 0x5022,
EVT_DROP = 0x5023,
EVT_BUT_CANCEL = 0x5024,
/* could become manipulator callback */
EVT_MANIPULATOR_UPDATE = 0x5025,
/* ********** End of Blender internal events. ********** */
};