Fix assert: Avoid doing operations over invalid Aabb (#3757)
Signed-off-by: moraaar <moraaar@amazon.com>
This commit is contained in:
@@ -578,15 +578,14 @@ namespace AZ
|
||||
{
|
||||
if (m_meshHandle.IsValid() && m_meshFeatureProcessor)
|
||||
{
|
||||
Aabb aabb = m_meshFeatureProcessor->GetLocalAabb(m_meshHandle);
|
||||
if (Aabb aabb = m_meshFeatureProcessor->GetLocalAabb(m_meshHandle); aabb.IsValid())
|
||||
{
|
||||
aabb.MultiplyByScale(m_cachedNonUniformScale);
|
||||
return aabb;
|
||||
}
|
||||
}
|
||||
|
||||
aabb.MultiplyByScale(m_cachedNonUniformScale);
|
||||
return aabb;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Aabb::CreateNull();
|
||||
}
|
||||
return Aabb::CreateNull();
|
||||
}
|
||||
|
||||
AzFramework::RenderGeometry::RayResult MeshComponentController::RenderGeometryIntersect(
|
||||
|
||||
Reference in New Issue
Block a user