This commit is contained in:
Wojtek Figat
2021-10-05 15:58:45 +02:00
parent 590c75f4cb
commit 77f2bd5115
4 changed files with 28 additions and 6 deletions

View File

@@ -100,7 +100,9 @@ namespace FlaxEditor.GUI.Docking
// Check if window won't be docked
if (_toSet == DockState.Float)
{
var window = _toMove.Window.Window;
var window = _toMove.Window?.Window;
if (window == null)
return;
Vector2 mouse = FlaxEngine.Input.MouseScreenPosition;
// Move base window