Răsfoiți Sursa

Address more PR feedback

Signed-off-by: Yuriy Toporovskyy <[email protected]>
Yuriy Toporovskyy 4 ani în urmă
părinte
comite
56dee47c6b

+ 0 - 1
Code/Editor/AnimationContext.cpp

@@ -16,7 +16,6 @@
 
 // Editor
 #include "TrackView/TrackViewDialog.h"
-#include "RenderViewport.h"
 #include "ViewManager.h"
 #include "Objects/SelectionGroup.h"
 #include "Include/IObjectManager.h"

+ 0 - 2
Code/Editor/EditorViewportWidget.h

@@ -8,8 +8,6 @@
 
 
 #pragma once
-// RenderViewport.h : header file
-//
 
 #if !defined(Q_MOC_RUN)
 #include <Cry_Camera.h>

+ 0 - 1
Code/Editor/Export/ExportManager.cpp

@@ -22,7 +22,6 @@
 #include "OBJExporter.h"
 #include "OCMExporter.h"
 #include "FBXExporterDialog.h"
-#include "RenderViewport.h"
 #include "TrackViewExportKeyTimeDlg.h"
 #include "AnimationContext.h"
 #include "TrackView/DirectorNodeAnimator.h"

+ 1 - 0
Code/Editor/Plugins/ComponentEntityEditorPlugin/SandboxIntegration.cpp

@@ -84,6 +84,7 @@
 #include <Editor/Util/PathUtil.h>
 #include <IResourceSelectorHost.h>
 #include "CryEdit.h"
+#include "Undo/Undo.h"
 
 #include <QMenu>
 #include <QAction>

+ 0 - 0
Code/Editor/RenderViewport.cpp


+ 0 - 54
Code/Editor/RenderViewport.h

@@ -1,54 +0,0 @@
-/*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
-
-
-#ifndef CRYINCLUDE_EDITOR_RENDERVIEWPORT_H
-#define CRYINCLUDE_EDITOR_RENDERVIEWPORT_H
-
-#pragma once
-// RenderViewport.h : header file
-//
-
-#if !defined(Q_MOC_RUN)
-#include <Cry_Camera.h>
-
-#include <QSet>
-
-#include "Viewport.h"
-#include "Objects/DisplayContext.h"
-#include "Undo/Undo.h"
-#include "Util/PredefinedAspectRatios.h"
-
-#include <AzCore/Component/EntityId.h>
-#include <AzCore/std/optional.h>
-#include <AzFramework/Input/Buses/Requests/InputSystemCursorRequestBus.h>
-#include <AzToolsFramework/API/ToolsApplicationAPI.h>
-#include <AzToolsFramework/API/EditorCameraBus.h>
-#include <AzToolsFramework/Entity/EditorEntityContextBus.h>
-#include <AzToolsFramework/Viewport/ViewportMessages.h>
-#include <MathConversion.h>
-#endif
-
-#include <AzFramework/Windowing/WindowBus.h>
-#include <AzFramework/Visibility/EntityVisibilityQuery.h>
-
-// forward declarations.
-class CBaseObject;
-class QMenu;
-class QKeyEvent;
-class EditorEntityNotifications;
-struct ray_hit;
-struct IRenderMesh;
-struct IVariable;
-
-namespace AzToolsFramework
-{
-    class ManipulatorManager;
-}
-
-#endif

+ 0 - 1
Code/Editor/TrackView/TrackViewAnimNode.cpp

@@ -34,7 +34,6 @@
 #include "Clipboard.h"
 #include "CommentNodeAnimator.h"
 #include "DirectorNodeAnimator.h"
-#include "RenderViewport.h"
 #include "ViewManager.h"
 #include "Include/IObjectManager.h"
 #include "Objects/GizmoManager.h"

+ 0 - 1
Code/Editor/ViewManager.cpp

@@ -26,7 +26,6 @@
 #include "LayoutWnd.h"
 #include "2DViewport.h"
 #include "TopRendererWnd.h"
-#include "RenderViewport.h"
 #include "EditorViewportWidget.h"
 #include "CryEditDoc.h"
 

+ 0 - 1
Code/Editor/ViewportTitleDlg.h

@@ -12,7 +12,6 @@
 #pragma once
 
 #if !defined(Q_MOC_RUN)
-#include "RenderViewport.h"
 #include <AzCore/Component/Component.h>
 
 #include <IAudioSystem.h>

+ 0 - 2
Code/Editor/editor_lib_files.cmake

@@ -807,8 +807,6 @@ set(FILES
     ViewportManipulatorController.h
     LegacyViewportCameraController.cpp
     LegacyViewportCameraController.h
-    RenderViewport.cpp
-    RenderViewport.h
     TopRendererWnd.cpp
     TopRendererWnd.h
     ViewManager.cpp

+ 1 - 1
Gems/Camera/Code/Source/CameraSystemComponent.h

@@ -58,4 +58,4 @@ namespace Camera
         AZ::EntityId m_activeView;
         CameraProperties m_activeViewProperties;
     };
-}
+} // namespace Camera

+ 1 - 1
Gems/Camera/Code/Source/ViewportCameraSelectorWindow_Internals.h

@@ -42,7 +42,7 @@ namespace Camera
             , public CameraNotificationBus::Handler
         {
         public:
-            CameraListModel(QWidget* myParent);
+            explicit CameraListModel(QWidget* myParent);
             ~CameraListModel();
 
             // QAbstractItemModel interface

+ 1 - 1
Gems/PhysXDebug/Code/Source/SystemComponent.cpp

@@ -470,7 +470,7 @@ namespace PhysXDebug
 
     AZ::Vector3 GetViewCameraPosition()
     {
-        using namespace Camera;
+        using Camera::ActiveCameraRequestBus;
 
         AZ::Transform tm = AZ::Transform::CreateIdentity();
         ActiveCameraRequestBus::BroadcastResult(tm, &ActiveCameraRequestBus::Events::GetActiveCameraTransform);