From 1e7d0c6ac13585a7b201611d7b9038b4eee187ec Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Sun, 26 Jun 2016 13:25:03 -0500 Subject: [PATCH] Zoom texture region via mouse wheel --- tools/editor/plugins/texture_region_editor_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/editor/plugins/texture_region_editor_plugin.cpp b/tools/editor/plugins/texture_region_editor_plugin.cpp index 3d220b84749..43086fb208d 100644 --- a/tools/editor/plugins/texture_region_editor_plugin.cpp +++ b/tools/editor/plugins/texture_region_editor_plugin.cpp @@ -388,6 +388,10 @@ void TextureRegionEditor::_region_input(const InputEvent& p_input) drag_index = -1; } } + } else if (mb.button_index == BUTTON_WHEEL_UP) { + _zoom_in(); + } else if (mb.button_index == BUTTON_WHEEL_DOWN) { + _zoom_out(); } } else if (p_input.type==InputEvent::MOUSE_MOTION) {