Selaa lähdekoodia

Fixed bug that prevented creating polygons.

redtoorange 8 vuotta sitten
vanhempi
commit
b2d2116a3a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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();