Prevented abusive resizing when virtual camera is displayed + hide virtual cam in play mode

This commit is contained in:
antopilo
2024-09-13 18:24:42 -04:00
parent bb0da25682
commit ee852f7f3d
3 changed files with 190 additions and 146 deletions

View File

@@ -2654,7 +2654,7 @@ namespace Nuake {
corner = 2;
if (Selection.Type == EditorSelectionType::Entity && Selection.Entity.IsValid() && Selection.Entity.HasComponent<CameraComponent>())
if (Selection.Type == EditorSelectionType::Entity && Selection.Entity.IsValid() && Selection.Entity.HasComponent<CameraComponent>() && !Engine::IsPlayMode())
{
window_flags |= ImGuiWindowFlags_NoMove;
viewport = ImGui::GetWindowViewport();