|
@@ -939,12 +939,6 @@ namespace EMotionFX
|
|
|
AZ::IO::FixedMaxPath outFilePath = AzFramework::StringFunc::Path::MakeUniqueFilenameWithSuffix(
|
|
|
AZ::IO::PathView(fullSourceFolderNameInCallback + "/NewAnimGraph.animgraph"));
|
|
|
|
|
|
- AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotificationBus::Event(
|
|
|
- AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::FileCreationNotificationBusId,
|
|
|
- &AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::HandleAssetCreatedInEditor,
|
|
|
- outFilePath.Native().c_str(),
|
|
|
- AZ::Crc32());
|
|
|
-
|
|
|
EMotionFX::AnimGraph* animGraph = aznew EMotionFX::AnimGraph();
|
|
|
// create the root state machine object
|
|
|
EMotionFX::AnimGraphObject* rootSMObject =
|
|
@@ -961,6 +955,12 @@ namespace EMotionFX
|
|
|
animGraph->SaveToFile(outFilePath.Native().c_str(), serializeContext);
|
|
|
delete animGraph;
|
|
|
}
|
|
|
+ AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotificationBus::Event(
|
|
|
+ AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::FileCreationNotificationBusId,
|
|
|
+ &AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::HandleAssetCreatedInEditor,
|
|
|
+ outFilePath.Native().c_str(),
|
|
|
+ AZ::Crc32(),
|
|
|
+ true);
|
|
|
} });
|
|
|
|
|
|
creators.push_back(
|
|
@@ -972,12 +972,6 @@ namespace EMotionFX
|
|
|
AZ::IO::FixedMaxPath outFilePath = AzFramework::StringFunc::Path::MakeUniqueFilenameWithSuffix(
|
|
|
AZ::IO::PathView(fullSourceFolderNameInCallback + "/NewMotionSet.motionset"));
|
|
|
|
|
|
- AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotificationBus::Event(
|
|
|
- AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::FileCreationNotificationBusId,
|
|
|
- &AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::HandleAssetCreatedInEditor,
|
|
|
- outFilePath.Native().c_str(),
|
|
|
- AZ::Crc32());
|
|
|
-
|
|
|
AZ::IO::PathView filePath = outFilePath.c_str();
|
|
|
AZStd::string motionSetName = filePath.Stem().Native();
|
|
|
EMotionFX::MotionSet* motionSet = aznew EMotionFX::MotionSet(motionSetName.c_str(), /*parentSet=*/nullptr);
|
|
@@ -987,6 +981,13 @@ namespace EMotionFX
|
|
|
serializeContext, &AZ::ComponentApplicationRequests::GetSerializeContext);
|
|
|
motionSet->SaveToFile(outFilePath.Native().c_str(), serializeContext);
|
|
|
delete motionSet;
|
|
|
+
|
|
|
+ AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotificationBus::Event(
|
|
|
+ AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::FileCreationNotificationBusId,
|
|
|
+ &AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::HandleAssetCreatedInEditor,
|
|
|
+ outFilePath.Native().c_str(),
|
|
|
+ AZ::Crc32(),
|
|
|
+ true);
|
|
|
} });
|
|
|
}
|
|
|
|