Merge branch 'master' of https://github.com/FlaxEngine/FlaxEngine into dev
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user