Hello. Currently updating to v 4.0.6 from 3.8.6. I have a call to GetNodesInRegion where the bounds are such that the rect from the GetRectFromBounds call has a negative height. This can result in a ListPool Claim call with a negative capacity and thus an error.
Original:
var inArea = ListPool.Claim(rect.Width*rect.Height);
My fix:
var inArea = ListPool.Claim(Mathf.Abs(rect.Width*rect.Height));
Does this seem about right or should this never be sent a bounds which can result in a negative width or height in rect form?