diff --git a/Source/Editor/Windows/SceneTreeWindow.ContextMenu.cs b/Source/Editor/Windows/SceneTreeWindow.ContextMenu.cs index 3cecb0ac4..50187ed3f 100644 --- a/Source/Editor/Windows/SceneTreeWindow.ContextMenu.cs +++ b/Source/Editor/Windows/SceneTreeWindow.ContextMenu.cs @@ -167,7 +167,7 @@ namespace FlaxEditor.Windows /// /// The parent control. /// The location (within a given control). - private void ShowContextMenu(Control parent, ref Vector2 location) + private void ShowContextMenu(Control parent, Vector2 location) { var contextMenu = CreateContextMenu(); diff --git a/Source/Editor/Windows/SceneTreeWindow.cs b/Source/Editor/Windows/SceneTreeWindow.cs index 6deb6d778..c327f709a 100644 --- a/Source/Editor/Windows/SceneTreeWindow.cs +++ b/Source/Editor/Windows/SceneTreeWindow.cs @@ -276,7 +276,7 @@ namespace FlaxEditor.Windows if (!Editor.StateMachine.CurrentState.CanEditScene) return; - ShowContextMenu(node, ref location); + ShowContextMenu(node, location); } /// @@ -379,7 +379,7 @@ namespace FlaxEditor.Windows { // Show context menu Editor.SceneEditing.Deselect(); - ShowContextMenu(this, ref location); + ShowContextMenu(Parent, location + _searchBox.BottomLeft); } return true;