From 2b7a8265536dbbbb966d4af59f52d8b21af99e36 Mon Sep 17 00:00:00 2001 From: Mariano Suligoy Date: Tue, 20 Jun 2017 16:05:36 -0300 Subject: [PATCH] Fix regresion on Texture Region Editor Plugin. Fixes#9282 --- editor/plugins/texture_region_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index ea5bf437fff..8a7dcea3938 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -218,7 +218,7 @@ void TextureRegionEditor::_region_input(const Ref &p_input) { mtx.xform(rect.position + Vector2(0, rect.size.y / 2)) + Vector2(-4, 0) }; - Ref mb; + Ref mb = p_input; if (mb.is_valid()) { if (mb->get_button_index() == BUTTON_LEFT) {