diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-08-27 21:43:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-27 21:43:55 +0200 |
commit | 475b944f9c48d02c3650487d97dfd150ceb12286 (patch) | |
tree | 5139ba5bfc13e526e1b909c44a8c5397fa06ac92 /tools/editor/plugins | |
parent | 820cef7c6b364490b6d02912cd0b0db0e492db8e (diff) | |
parent | 1e7d0c6ac13585a7b201611d7b9038b4eee187ec (diff) |
Merge pull request #6094 from djrm/texure_region_zoom_by_scroll
Zoom texture region using mouse wheel
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r-- | tools/editor/plugins/texture_region_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/editor/plugins/texture_region_editor_plugin.cpp b/tools/editor/plugins/texture_region_editor_plugin.cpp index 3d220b8474..43086fb208 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) { |