diff options
| author | Daniel J. Ramirez | 2016-06-26 13:25:03 -0500 |
|---|---|---|
| committer | Rémi Verschelde | 2016-09-01 08:37:55 +0200 |
| commit | 16fc229e5dd43a767f023e254007ef1acc761c13 (patch) | |
| tree | 2e1d95a9f960f555c9f3bbefd7c4f4833783a2fd /tools/editor/plugins | |
| parent | 4f07998552af0448bd22c27717e5368964e0a5c0 (diff) | |
| download | godot-16fc229e5dd43a767f023e254007ef1acc761c13.tar.gz godot-16fc229e5dd43a767f023e254007ef1acc761c13.tar.zst godot-16fc229e5dd43a767f023e254007ef1acc761c13.zip | |
Zoom texture region via mouse wheel
(cherry picked from commit 1e7d0c6ac13585a7b201611d7b9038b4eee187ec)
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 3d220b847..43086fb20 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) { |
