summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorDaniel J. Ramirez <djrmuv@gmail.com>2016-06-26 13:25:03 -0500
committerDaniel J. Ramirez <djrmuv@gmail.com>2016-08-09 17:28:40 -0500
commit1e7d0c6ac13585a7b201611d7b9038b4eee187ec (patch)
tree1cd56ec533869907c04c748d565f891c0effb4dd /tools/editor
parentce72bef3a18ecdc173e2510030eff99ae8a48bb1 (diff)
Zoom texture region via mouse wheel
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/plugins/texture_region_editor_plugin.cpp4
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) {