diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-07-25 15:22:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-07-25 15:39:58 +0300 |
commit | f848374e494414c429307f76a15bcc9d08f215d1 (patch) | |
tree | 5a8773664faf4b7d29507bbee73ed560e338c74a /source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c | |
parent | 762fa7bee304448f58bebde2314cdc384f538e04 (diff) |
Cleanup: rename active to modal
This matches operators naming and should avoid confusion in future if we
want to use active as term for last-selected.
Diffstat (limited to 'source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c')
-rw-r--r-- | source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c index 4157e2ba18f..0ae6698373d 100644 --- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c +++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c @@ -288,7 +288,7 @@ void MANIPULATORGROUP_OT_manipulator_select(wmOperatorType *ot) typedef struct ManipulatorTweakData { wmManipulatorMap *mmap; - wmManipulator *active; + wmManipulator *mpr_modal; int init_event; /* initial event type */ int flag; /* tweak flags */ @@ -297,17 +297,17 @@ typedef struct ManipulatorTweakData { static void manipulator_tweak_finish(bContext *C, wmOperator *op, const bool cancel) { ManipulatorTweakData *mtweak = op->customdata; - if (mtweak->active->type->exit) { - mtweak->active->type->exit(C, mtweak->active, cancel); + if (mtweak->mpr_modal->type->exit) { + mtweak->mpr_modal->type->exit(C, mtweak->mpr_modal, cancel); } - wm_manipulatormap_active_set(mtweak->mmap, C, NULL, NULL); + wm_manipulatormap_modal_set(mtweak->mmap, C, NULL, NULL); MEM_freeN(mtweak); } static int manipulator_tweak_modal(bContext *C, wmOperator *op, const wmEvent *event) { ManipulatorTweakData *mtweak = op->customdata; - wmManipulator *mpr = mtweak->active; + wmManipulator *mpr = mtweak->mpr_modal; if (mpr == NULL) { BLI_assert(0); @@ -375,7 +375,7 @@ static int manipulator_tweak_invoke(bContext *C, wmOperator *op, const wmEvent * /* activate highlighted manipulator */ - wm_manipulatormap_active_set(mmap, C, event, mpr); + wm_manipulatormap_modal_set(mmap, C, event, mpr); /* XXX temporary workaround for modal manipulator operator * conflicting with modal operator attached to manipulator */ @@ -389,7 +389,7 @@ static int manipulator_tweak_invoke(bContext *C, wmOperator *op, const wmEvent * ManipulatorTweakData *mtweak = MEM_mallocN(sizeof(ManipulatorTweakData), __func__); mtweak->init_event = WM_userdef_event_type_from_keymap_type(event->type); - mtweak->active = mmap->mmap_context.highlight; + mtweak->mpr_modal = mmap->mmap_context.highlight; mtweak->mmap = mmap; mtweak->flag = 0; |