{LYN-4514} Re-factored Blast gem's python asset builder (#2143)
* {LYN-4514} Re-factored Blast gem's python asset builder
* Re-factored Blast gem's python asset builder so that the .blast file creates an asset info scene manifest
* Added a python script to act as a SceneAPI script + Python Asset Builder (blast_asset_builder.py)
* renaming types from "Slice" to "Chunk"
Tests: Re-enabled Gems/Blast/Code/Tests/Editor/EditorBlastSliceAssetHandlerTest.cpp
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* renaming from Slice to Chunks
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* updated the Copyright
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* Removing StdAfx.h includes
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* null check added m_blastChunksAsset.Get()
removing 'slice' like EditorBlastSliceAssetHandlerTestFixture
delete old asset builder blast file
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* adding source deps for FBX -> BLAST file
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* removing slice name
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* Adding error message and updates from PR
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <Asset/BlastSliceAsset.h>
|
||||
#include <Asset/BlastChunksAsset.h>
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <Editor/EditorSystemComponent.h>
|
||||
#include <Editor/EditorWindow.h>
|
||||
@@ -16,7 +16,7 @@ namespace Blast
|
||||
{
|
||||
void EditorSystemComponent::Reflect(AZ::ReflectContext* context)
|
||||
{
|
||||
BlastSliceAsset::Reflect(context);
|
||||
BlastChunksAsset::Reflect(context);
|
||||
|
||||
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
|
||||
{
|
||||
@@ -26,14 +26,14 @@ namespace Blast
|
||||
|
||||
void EditorSystemComponent::Activate()
|
||||
{
|
||||
m_editorBlastSliceAssetHandler = AZStd::make_unique<EditorBlastSliceAssetHandler>();
|
||||
m_editorBlastSliceAssetHandler->Register();
|
||||
m_editorBlastChunksAssetHandler = AZStd::make_unique<EditorBlastChunksAssetHandler>();
|
||||
m_editorBlastChunksAssetHandler->Register();
|
||||
|
||||
auto assetCatalog = AZ::Data::AssetCatalogRequestBus::FindFirstHandler();
|
||||
if (assetCatalog)
|
||||
{
|
||||
assetCatalog->EnableCatalogForAsset(azrtti_typeid<BlastSliceAsset>());
|
||||
assetCatalog->AddExtension("blast_slice");
|
||||
assetCatalog->EnableCatalogForAsset(azrtti_typeid<BlastChunksAsset>());
|
||||
assetCatalog->AddExtension("blast_chunks");
|
||||
}
|
||||
|
||||
AzToolsFramework::EditorEvents::Bus::Handler::BusConnect();
|
||||
@@ -46,7 +46,7 @@ namespace Blast
|
||||
void EditorSystemComponent::Deactivate()
|
||||
{
|
||||
AzToolsFramework::EditorEvents::Bus::Handler::BusDisconnect();
|
||||
m_editorBlastSliceAssetHandler.reset();
|
||||
m_editorBlastChunksAssetHandler.reset();
|
||||
}
|
||||
|
||||
// This will be called when the IEditor instance is ready
|
||||
|
||||
Reference in New Issue
Block a user