Enabled PhysX system component in asset builders since it's required … (#2652)
* Enabled PhysX system component in asset builders since it's required for cooking collision meshes Signed-off-by: pereslav <pereslav@amazon.com> * Added AssetCatalogService to the list of dependent Signed-off-by: pereslav <pereslav@amazon.com>
This commit is contained in:
@@ -95,6 +95,7 @@ namespace PhysX
|
||||
{
|
||||
serialize->Class<SystemComponent, AZ::Component>()
|
||||
->Version(1)
|
||||
->Attribute(AZ::Edit::Attributes::SystemComponentTags, AZStd::vector<AZ::Crc32>({ AZ_CRC_CE("AssetBuilder") }))
|
||||
->Field("Enabled", &SystemComponent::m_enabled)
|
||||
;
|
||||
|
||||
@@ -122,13 +123,14 @@ namespace PhysX
|
||||
incompatible.push_back(AZ_CRC("PhysXService", 0x75beae2d));
|
||||
}
|
||||
|
||||
void SystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
|
||||
void SystemComponent::GetRequiredServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& required)
|
||||
{
|
||||
required.push_back(AZ_CRC("AssetDatabaseService", 0x3abf5601));
|
||||
}
|
||||
|
||||
void SystemComponent::GetDependentServices([[maybe_unused]]AZ::ComponentDescriptor::DependencyArrayType& dependent)
|
||||
void SystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
|
||||
{
|
||||
dependent.push_back(AZ_CRC_CE("AssetDatabaseService"));
|
||||
dependent.push_back(AZ_CRC_CE("AssetCatalogService"));
|
||||
}
|
||||
|
||||
SystemComponent::SystemComponent()
|
||||
|
||||
Reference in New Issue
Block a user