Red code legacy renderer (#383)
- Remove some references to gEnv->pRenderer/GetIEditor()->GetRenderer() that is now always null. - Restore the debug console to existence. - Stop building the following in preparation for their removal: Code/CryEngine/Cry3DEngine/* Code/CryEngine/RenderDll/* Code/Tools/CryFXC/* Code/Tools/HLSLCrossCompiler/* Code/Tools/HLSLCrossCompilerMETAL/* Code/Tools/RC/* Code/Tools/ShaderCacheGen/* Tools/CrySCompileServer/*
This commit is contained in:
@@ -34,9 +34,6 @@
|
||||
#include "Undo/Undo.h"
|
||||
#include "LyViewPaneNames.h"
|
||||
|
||||
// Cry3DEngine
|
||||
#include <Cry3DEngine/Environment/OceanEnvironmentBus.h>
|
||||
|
||||
AZ_PUSH_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
||||
#include <ui_TimeOfDayDialog.h>
|
||||
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
|
||||
@@ -69,14 +66,6 @@ namespace TimeOfDayDetails
|
||||
return static_cast<float>(time.msecsSinceStartOfDay() / 60000) / 60.0;
|
||||
}
|
||||
|
||||
// Is the ocean component feature toggle enabled?
|
||||
AZ_INLINE static bool HasOceanFeatureToggle()
|
||||
{
|
||||
bool bHasOceanFeature = false;
|
||||
AZ::OceanFeatureToggleBus::BroadcastResult(bHasOceanFeature, &AZ::OceanFeatureToggleBus::Events::OceanComponentEnabled);
|
||||
return bHasOceanFeature;
|
||||
}
|
||||
|
||||
AZ_INLINE static bool SkipUserInterface(int value)
|
||||
{
|
||||
// Check for obsolete parameters that we still want to keep around to migrate legacy data to new data
|
||||
@@ -89,13 +78,6 @@ namespace TimeOfDayDetails
|
||||
(enumValue == ITimeOfDay::PARAM_TERRAIN_OCCL_MULTIPLIER) ||
|
||||
(enumValue == ITimeOfDay::PARAM_SUN_COLOR_MULTIPLIER);
|
||||
|
||||
// Only check the ocean parameters if the ocean feature (aka the Infinite Ocean Component)
|
||||
// has been enabled
|
||||
skipParameter |= HasOceanFeatureToggle() &&
|
||||
((enumValue == ITimeOfDay::PARAM_OCEANFOG_COLOR) ||
|
||||
(enumValue == ITimeOfDay::PARAM_OCEANFOG_COLOR_MULTIPLIER) ||
|
||||
(enumValue == ITimeOfDay::PARAM_OCEANFOG_DENSITY));
|
||||
|
||||
return skipParameter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user