Remove the legacy ViewSystem and some other tangentially related legacy code. (#5558)

Signed-off-by: bosnichd <bosnichd@amazon.com>
This commit is contained in:
bosnichd
2021-11-11 13:29:51 -07:00
committed by GitHub
parent 9e2a3226fd
commit 19acf94606
49 changed files with 73 additions and 3504 deletions
@@ -17,7 +17,6 @@
#include <AzCore/std/string/conversions.h>
#include <LmbrCentral/Rendering/RenderNodeBus.h>
#include <IRenderAuxGeom.h>
#include <IViewSystem.h>
#include <IConsole.h>
#include "ImGuiColorDefines.h"
@@ -16,8 +16,6 @@
#include "PNoise3.h"
#include "AnimSequence.h"
#include <Cry_Camera.h>
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Component/ComponentApplicationBus.h>
#include <LyShine/Bus/UiAnimateEntityBus.h>
@@ -24,7 +24,6 @@
#include <IConsole.h>
#include <ITimer.h>
#include <IRenderer.h>
#include <IViewSystem.h>
//////////////////////////////////////////////////////////////////////////
namespace
@@ -615,20 +614,6 @@ bool UiAnimationSystem::InternalStopSequence(IUiAnimSequence* pSequence, bool bA
//////////////////////////////////////////////////////////////////////////
bool UiAnimationSystem::AbortSequence(IUiAnimSequence* pSequence, bool bLeaveTime)
{
assert(pSequence);
// to avoid any camera blending after aborting a cut scene
IViewSystem* pViewSystem = gEnv->pSystem->GetIViewSystem();
if (pViewSystem)
{
pViewSystem->SetBlendParams(0, 0, 0);
IView* pView = pViewSystem->GetActiveView();
if (pView)
{
pView->ResetBlending();
}
}
return InternalStopSequence(pSequence, true, !bLeaveTime);
}
-1
View File
@@ -8,7 +8,6 @@
#include "LyShineTest.h"
#include <Mocks/ISystemMock.h>
#include <Mocks/ITextureMock.h>
#include <Sprite.h>
namespace UnitTest
@@ -37,7 +37,6 @@
#include <IConsole.h>
#include <ITimer.h>
#include <IRenderer.h>
#include <IViewSystem.h>
#include <Maestro/Types/AnimNodeType.h>
#include <Maestro/Types/SequenceType.h>
#include <Maestro/Types/AnimParamType.h>
@@ -835,20 +834,6 @@ bool CMovieSystem::InternalStopSequence(IAnimSequence* sequence, bool bAbort, bo
//////////////////////////////////////////////////////////////////////////
bool CMovieSystem::AbortSequence(IAnimSequence* sequence, bool bLeaveTime)
{
assert(sequence);
// to avoid any camera blending after aborting a cut scene
IViewSystem* pViewSystem = gEnv->pSystem->GetIViewSystem();
if (pViewSystem)
{
pViewSystem->SetBlendParams(0, 0, 0);
IView* pView = pViewSystem->GetActiveView();
if (pView)
{
pView->ResetBlending();
}
}
return InternalStopSequence(sequence, true, !bLeaveTime);
}
@@ -36,7 +36,6 @@
#include <IAudioSystem.h>
#include <IConsole.h>
#include <IViewSystem.h>
#define s_nodeParamsInitialized s_nodeParamsInitializedScene
#define s_nodeParams s_nodeParamsSene
@@ -796,22 +795,9 @@ void CAnimSceneNode::ApplyCameraKey(ISelectKey& key, SAnimContext& ec)
cameraParams.fov = 0;
cameraParams.justActivated = true;
// Init the defaults with the current view settings.
// With component entities, the fov and near plane may be animated on an
// entity with a Camera component. Don't stomp the values if this update happens
// after those properties are animated.
AZ_Assert(gEnv && gEnv->pSystem, "Expected valid gEnv->pSystem");
IViewSystem* viewSystem = gEnv->pSystem->GetIViewSystem();
if (viewSystem)
{
IView* view = viewSystem->GetActiveView();
if (view)
{
SViewParams params = *view->GetCurrentParams();
cameraParams.fov = params.fov;
cameraParams.nearZ = params.nearplane;
}
}
///////////////////////////////////////////////////////////////////
// find the Scene Camera (Camera Component Camera)
@@ -16,7 +16,6 @@
#include <PhysXDebug/PhysXDebugBus.h>
#include <PxPhysicsAPI.h>
#include <Cry_Camera.h>
#include <IRenderAuxGeom.h>
#include <CryCommon/CrySystemBus.h>