diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-08-08 18:37:53 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-08-08 18:37:53 +0300 |
commit | 1e57ddf6eadcb4327f2689fb34f07fc5bf72331c (patch) | |
tree | 07d91ef8df7eefb9a0adfccc2a7ad50a0f9b6160 /source/blender/editors/transform/transform_mode_translate.c | |
parent | 8d080013f561f0084d8d937c9855c41be63170a4 (diff) | |
parent | b3fc8206be422a7d0155f0282c2493887e441dd3 (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/editors/transform/transform_mode_translate.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_translate.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c index 32c2e5e3bb0..8f6ec7bd98f 100644 --- a/source/blender/editors/transform/transform_mode_translate.c +++ b/source/blender/editors/transform/transform_mode_translate.c @@ -56,8 +56,6 @@ struct TranslateCustomData { struct { enum eTranslateRotateMode rotate_mode; } prev; - - const wmKeyMapItem *move_kmi; }; /** \} */ @@ -172,27 +170,6 @@ static void transdata_elem_translate_fn(void *__restrict iter_data_v, /** \} */ /* -------------------------------------------------------------------- */ -/** \name Events to Move Clip and Mask - * \{ */ - -static eRedrawFlag translate_handleEvent(struct TransInfo *t, const wmEvent *event) -{ - BLI_assert(t->options & (CTX_MOVIECLIP | CTX_MASK)); - struct TranslateCustomData *custom_data = t->custom.mode.data; - const wmKeyMapItem *kmi = custom_data->move_kmi; - if (kmi && event->type == kmi->type && event->val == kmi->val) { - /* Toggles the handle offset effect. */ - restoreTransObjects(t); - - t->flag ^= T_ALT_TRANSFORM; - return TREDRAW_HARD; - } - return TREDRAW_NOTHING; -} - -/** \} */ - -/* -------------------------------------------------------------------- */ /** \name Transform (Translation) * \{ */ @@ -637,11 +614,6 @@ void initTranslation(TransInfo *t) custom_data->prev.rotate_mode = TRANSLATE_ROTATE_OFF; t->custom.mode.data = custom_data; t->custom.mode.use_free = true; - - if (t->keymap && (t->options & (CTX_MOVIECLIP | CTX_MASK))) { - custom_data->move_kmi = WM_modalkeymap_find_propvalue(t->keymap, TFM_MODAL_TRANSLATE); - t->handleEvent = translate_handleEvent; - } } /** \} */ |