mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
Geometric Primitives Cleanup (#346)
* CircleF and RectangleF * Fix build errors
This commit is contained in:
committed by
Dylan Wilson
parent
ea518d55da
commit
a1f8566a46
@@ -22,9 +22,9 @@ namespace MonoGame.Extended.SceneGraphs
|
||||
{
|
||||
var node = RootNode;
|
||||
|
||||
while ((node != null) && node.BoundingRectangle.Contains(x, y))
|
||||
while ((node != null) && node.BoundingRectangle.Contains(new Point2(x, y)))
|
||||
{
|
||||
var childNode = node.Children.FirstOrDefault(c => c.BoundingRectangle.Contains(x, y));
|
||||
var childNode = node.Children.FirstOrDefault(c => c.BoundingRectangle.Contains(new Point2(x, y)));
|
||||
|
||||
if (childNode != null)
|
||||
node = childNode;
|
||||
|
||||
Reference in New Issue
Block a user