Adapted loading calls to removed legacy file loading
Signed-off-by: Benjamin Jillich <jillich@amazon.com>
This commit is contained in:
@@ -219,8 +219,6 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/AnimGraphExampleNoDependency.animgraph
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/EmptyAnimGraphExample.animgraph
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/EmptyMotionSetExample.motionset
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/LegacyAnimGraphExample.animgraph
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/LegacyMotionSetExample.motionset
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/MotionSetExample.motionset
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/MotionSetExampleNoDependency.motionset
|
||||
OUTPUT_SUBDIRECTORY
|
||||
|
||||
@@ -93,9 +93,7 @@ namespace CommandSystem
|
||||
}
|
||||
|
||||
// load anim graph from file
|
||||
EMotionFX::Importer::AnimGraphSettings settings;
|
||||
settings.mDisableNodeVisualization = false;
|
||||
EMotionFX::AnimGraph* animGraph = EMotionFX::GetImporter().LoadAnimGraph(filename.c_str(), &settings);
|
||||
EMotionFX::AnimGraph* animGraph = EMotionFX::GetImporter().LoadAnimGraph(filename.c_str());
|
||||
if (!animGraph)
|
||||
{
|
||||
outResult = AZStd::string::format("Failed to load anim graph from %s.", filename.c_str());
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace EMotionFX
|
||||
AZ_UNUSED(sourceFile);
|
||||
|
||||
AZ::ObjectStream::FilterDescriptor loadFilter = AZ::ObjectStream::FilterDescriptor(&AZ::Data::AssetFilterNoAssetLoading, AZ::ObjectStream::FILTERFLAG_IGNORE_UNKNOWN_CLASSES);
|
||||
AZStd::unique_ptr<AnimGraph> animGraph(GetImporter().LoadAnimGraph(fullPath, nullptr, loadFilter));
|
||||
AZStd::unique_ptr<AnimGraph> animGraph(GetImporter().LoadAnimGraph(fullPath, loadFilter));
|
||||
|
||||
if (!animGraph)
|
||||
{
|
||||
|
||||
@@ -364,16 +364,11 @@ set(FILES
|
||||
Source/TwoStringEventData.h
|
||||
Source/Importer/ChunkProcessors.cpp
|
||||
Source/Importer/ChunkProcessors.h
|
||||
Source/Importer/LegacyAnimGraphNodeParser.cpp
|
||||
Source/Importer/LegacyAnimGraphNodeParser.h
|
||||
Source/Importer/Importer.cpp
|
||||
Source/Importer/Importer.h
|
||||
Source/Importer/MotionSetFileFormat.h
|
||||
Source/Importer/NodeMapFileFormat.h
|
||||
Source/Importer/SharedFileFormatStructs.h
|
||||
Source/Importer/ActorFileFormat.h
|
||||
Source/Importer/AnimGraphFileFormat.cpp
|
||||
Source/Importer/AnimGraphFileFormat.h
|
||||
Source/Importer/MotionFileFormat.h
|
||||
Source/Parameter/BoolParameter.cpp
|
||||
Source/Parameter/BoolParameter.h
|
||||
|
||||
@@ -53,8 +53,7 @@ namespace EMotionFX
|
||||
AnimGraphAsset* assetData = asset.GetAs<AnimGraphAsset>();
|
||||
assetData->m_emfxAnimGraph.reset(EMotionFX::GetImporter().LoadAnimGraph(
|
||||
assetData->m_emfxNativeData.data(),
|
||||
assetData->m_emfxNativeData.size(),
|
||||
nullptr));
|
||||
assetData->m_emfxNativeData.size()));
|
||||
|
||||
if (assetData->m_emfxAnimGraph)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user