Apply patch from DutchDave on discord to make nodes selectable from any point on the node.
This commit is contained in:
@@ -878,7 +878,7 @@ namespace FlaxEditor.Surface
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override bool CanSelect(ref Float2 location)
|
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 />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user