Browse Source

Zoom texture region via mouse wheel

(cherry picked from commit 1e7d0c6ac13585a7b201611d7b9038b4eee187ec)
Daniel J. Ramirez 9 years ago
parent
commit
16fc229e5d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/editor/plugins/texture_region_editor_plugin.cpp

+ 4 - 0
tools/editor/plugins/texture_region_editor_plugin.cpp

@@ -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) {