Legacy Mesh component removal
* Removed legacy components * More legacy render component removal * Starting removal of legacy mesh component dependencies * Removed old light components that were allowing Atom test to succeed * Testing increasing the timeout to see if it lets it pass in Jenkins * put original timeout back * reordered components to test if it is component specific or not * Testing disabiling the test to see if we get a green * Fixed the removal of the test to sandbox * Removed Legacy Mesh Component and associated tendrils * Removed some missed references * Fixed some issues with unity builds and ambiguous naming * Addressed review feedback
This commit is contained in:
@@ -345,7 +345,6 @@ namespace PhysX
|
||||
AzToolsFramework::BoxManipulatorRequestBus::Handler::BusConnect(
|
||||
AZ::EntityComponentIdPair(GetEntityId(), GetId()));
|
||||
ColliderShapeRequestBus::Handler::BusConnect(GetEntityId());
|
||||
LmbrCentral::MeshComponentNotificationBus::Handler::BusConnect(GetEntityId());
|
||||
AZ::Render::MeshComponentNotificationBus::Handler::BusConnect(GetEntityId());
|
||||
EditorColliderComponentRequestBus::Handler::BusConnect(AZ::EntityComponentIdPair(GetEntityId(), GetId()));
|
||||
m_nonUniformScaleChangedHandler = AZ::NonUniformScaleChangedEvent::Handler(
|
||||
@@ -394,7 +393,6 @@ namespace PhysX
|
||||
m_nonUniformScaleChangedHandler.Disconnect();
|
||||
EditorColliderComponentRequestBus::Handler::BusDisconnect();
|
||||
AZ::Render::MeshComponentNotificationBus::Handler::BusDisconnect();
|
||||
LmbrCentral::MeshComponentNotificationBus::Handler::BusDisconnect();
|
||||
ColliderShapeRequestBus::Handler::BusDisconnect();
|
||||
AzToolsFramework::BoxManipulatorRequestBus::Handler::BusDisconnect();
|
||||
AZ::TransformNotificationBus::Handler::BusDisconnect();
|
||||
@@ -1179,17 +1177,7 @@ namespace PhysX
|
||||
AZ::Render::MeshComponentRequestBus::EventResult(atomMeshAsset, GetEntityId(),
|
||||
&AZ::Render::MeshComponentRequestBus::Events::GetModelAsset);
|
||||
|
||||
if (atomMeshAsset.GetId().IsValid())
|
||||
{
|
||||
return atomMeshAsset;
|
||||
}
|
||||
|
||||
// Try legacy render MeshComponent
|
||||
AZ::Data::Asset<AZ::Data::AssetData> legacyMeshAsset;
|
||||
LmbrCentral::MeshComponentRequestBus::EventResult(legacyMeshAsset,
|
||||
GetEntityId(), &LmbrCentral::MeshComponentRequests::GetMeshAsset);
|
||||
|
||||
return legacyMeshAsset;
|
||||
return atomMeshAsset;
|
||||
}
|
||||
|
||||
void EditorColliderComponent::SetCollisionMeshFromRender()
|
||||
@@ -1264,14 +1252,6 @@ namespace PhysX
|
||||
renderMeshAsset.GetHint().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void EditorColliderComponent::OnMeshCreated([[maybe_unused]] const AZ::Data::Asset<AZ::Data::AssetData>& asset)
|
||||
{
|
||||
if (ShouldUpdateCollisionMeshFromRender())
|
||||
{
|
||||
SetCollisionMeshFromRender();
|
||||
}
|
||||
}
|
||||
|
||||
void EditorColliderComponent::OnModelReady([[maybe_unused]] const AZ::Data::Asset<AZ::RPI::ModelAsset>& modelAsset,
|
||||
[[maybe_unused]] const AZ::Data::Instance<AZ::RPI::Model>& model)
|
||||
|
||||
Reference in New Issue
Block a user