Merge pull request #38328 from Nannaquin/master
Fix growMargin() not returning modified Rect2/Rect2i in Mono
This commit is contained in:
commit
a6e3c84c68
@ -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);
|
||||
|
@ -122,7 +122,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);
|
||||
|
Loading…
Reference in New Issue
Block a user