Fix growMargin() not returning modified Rect2/Rect2i

This commit is contained in:
Nannaquin 2020-04-29 11:29:57 -04:00
parent 39a0cdac5f
commit 0ac6f4c40b
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ namespace Godot
{ {
var g = this; var g = this;
g.GrowIndividual(Margin.Left == margin ? by : 0, g = g.GrowIndividual(Margin.Left == margin ? by : 0,
Margin.Top == margin ? by : 0, Margin.Top == margin ? by : 0,
Margin.Right == margin ? by : 0, Margin.Right == margin ? by : 0,
Margin.Bottom == margin ? by : 0); Margin.Bottom == margin ? by : 0);

View File

@ -122,7 +122,7 @@ namespace Godot
{ {
var g = this; var g = this;
g.GrowIndividual(Margin.Left == margin ? by : 0, g = g.GrowIndividual(Margin.Left == margin ? by : 0,
Margin.Top == margin ? by : 0, Margin.Top == margin ? by : 0,
Margin.Right == margin ? by : 0, Margin.Right == margin ? by : 0,
Margin.Bottom == margin ? by : 0); Margin.Bottom == margin ? by : 0);