Zoom texture region via mouse wheel

This commit is contained in:
Daniel J. Ramirez 2016-06-26 13:25:03 -05:00
parent ce72bef3a1
commit 1e7d0c6ac1
1 changed files with 4 additions and 0 deletions

View File

@ -388,6 +388,10 @@ void TextureRegionEditor::_region_input(const InputEvent& p_input)
drag_index = -1; 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) { } else if (p_input.type==InputEvent::MOUSE_MOTION) {