From 9e4de37e880a28a4cb6d4dc17b87a0ddfec7cdef Mon Sep 17 00:00:00 2001 From: Nannaquin Date: Wed, 29 Apr 2020 11:29:57 -0400 Subject: [PATCH] Fix growMargin() not returning modified Rect2/Rect2i (cherry picked from commit 0ac6f4c40b42e67439c15af8d6a51ff1889b0f15) --- modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs index 91e614dc7b2..1098ffe4e5f 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs @@ -127,7 +127,7 @@ namespace Godot { var g = this; - g.GrowIndividual(Margin.Left == margin ? by : 0, + g = g.GrowIndividual(Margin.Left == margin ? by : 0, Margin.Top == margin ? by : 0, Margin.Right == margin ? by : 0, Margin.Bottom == margin ? by : 0);