Explorar o código

Fixed bug that prevented creating polygons.

redtoorange %!s(int64=8) %!d(string=hai) anos
pai
achega
b2d2116a3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/plugins/collision_polygon_2d_editor_plugin.cpp

+ 1 - 1
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();