summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorredtoorange <redtoorange@gmail.com>2017-07-17 09:57:36 -0400
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-17 22:17:39 +0200
commitb2d2116a3a78dd178ce2735fb1bd3e86b52cb067 (patch)
tree2bdb3526fc5693694e549c17b9e408b67b63011d /editor
parent46439b573a4a026b79edbccc83150e6b18d22389 (diff)
Fixed bug that prevented creating polygons.
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/collision_polygon_2d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/collision_polygon_2d_editor_plugin.cpp b/editor/plugins/collision_polygon_2d_editor_plugin.cpp
index abee3ead71..346c00df64 100644
--- a/editor/plugins/collision_polygon_2d_editor_plugin.cpp
+++ b/editor/plugins/collision_polygon_2d_editor_plugin.cpp
@@ -99,7 +99,7 @@ bool CollisionPolygon2DEditor::forward_gui_input(const Ref<InputEvent> &p_event)
if (!node)
return false;
- Ref<InputEventMouseButton> mb;
+ Ref<InputEventMouseButton> mb = p_event;
if (mb.is_valid()) {
Transform2D xform = canvas_item_editor->get_canvas_transform() * node->get_global_transform();