Fixed crash and asserts when heightfield is used without Terrain World
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
This commit is contained in:
@@ -211,7 +211,12 @@ namespace PhysX
|
||||
{
|
||||
ClearHeightfield();
|
||||
InitHeightfieldShapeConfiguration();
|
||||
InitStaticRigidBody();
|
||||
|
||||
if (!m_shapeConfig->GetSamples().empty())
|
||||
{
|
||||
InitStaticRigidBody();
|
||||
}
|
||||
|
||||
Physics::ColliderComponentEventBus::Event(GetEntityId(), &Physics::ColliderComponentEvents::OnColliderChanged);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user