don't crash when calling OverrideWehicleWheelTransforms with invalid physics scene
This commit is contained in:
@@ -2586,6 +2586,8 @@ namespace wi::physics
|
||||
|
||||
void OverrideWehicleWheelTransforms(wi::scene::Scene& scene)
|
||||
{
|
||||
if (scene.physics_scene == nullptr)
|
||||
return;
|
||||
if (!IsSimulationEnabled())
|
||||
return;
|
||||
PhysicsScene& physics_scene = GetPhysicsScene(scene);
|
||||
|
||||
Reference in New Issue
Block a user