Allow to still show widget in prefabs when in play mode

This commit is contained in:
Chandler Cox
2024-03-18 18:58:59 -05:00
parent cf44d6580d
commit 4b9bfc5bb4

View File

@@ -507,7 +507,7 @@ namespace FlaxEditor
{
if (IsValidControl(selection[i], out var controlActor))
{
DrawControl(controlActor, controlActor.Control, true, ref mousePos, ref drawAnySelectedControl, EnableSelecting);
DrawControl(controlActor, controlActor.Control, true, ref mousePos, ref drawAnySelectedControl, EnableSelecting || (!EnableSelecting && Parent?.Parent is not Windows.GameWindow));
}
}
}