This commit is contained in:
thallard
2021-08-05 22:37:22 +02:00
23 changed files with 329 additions and 291 deletions

View File

@@ -167,7 +167,7 @@ namespace FlaxEditor.Windows
/// </summary>
/// <param name="parent">The parent control.</param>
/// <param name="location">The location (within a given control).</param>
private void ShowContextMenu(Control parent, ref Vector2 location)
private void ShowContextMenu(Control parent, Vector2 location)
{
var contextMenu = CreateContextMenu();

View File

@@ -276,7 +276,7 @@ namespace FlaxEditor.Windows
if (!Editor.StateMachine.CurrentState.CanEditScene)
return;
ShowContextMenu(node, ref location);
ShowContextMenu(node, location);
}
/// <inheritdoc />
@@ -379,7 +379,7 @@ namespace FlaxEditor.Windows
{
// Show context menu
Editor.SceneEditing.Deselect();
ShowContextMenu(this, ref location);
ShowContextMenu(Parent, location + _searchBox.BottomLeft);
}
return true;