Apply patch from DutchDave on discord to make nodes selectable from any point on the node.

This commit is contained in:
Menotdan
2023-09-19 23:08:57 -04:00
parent 0fe1acdabc
commit b4d95a68f1

View File

@@ -878,7 +878,7 @@ namespace FlaxEditor.Surface
/// <inheritdoc />
public override bool CanSelect(ref Float2 location)
{
return _headerRect.MakeOffsetted(Location).Contains(ref location);
return _headerRect.MakeOffsetted(Location).Contains(ref location) || new Rectangle(Float2.Zero, Size).MakeOffsetted(Location).Contains(ref location);
}
/// <inheritdoc />