| 483 | } |
| 484 | |
| 485 | void Cloth::OnDisable() |
| 486 | { |
| 487 | Actor::OnDisable(); |
| 488 | |
| 489 | #if WITH_CLOTH |
| 490 | if (_cloth) |
| 491 | PhysicsBackend::RemoveCloth(GetPhysicsScene()->GetPhysicsScene(), _cloth); |
| 492 | #endif |
| 493 | #if USE_EDITOR |
| 494 | GetSceneRendering()->RemovePhysicsDebug(this); |
| 495 | #endif |
| 496 | GetSceneRendering()->RemoveActor(this, _sceneRenderingKey); |
| 497 | } |
| 498 | |
| 499 | void Cloth::OnDeleteObject() |
| 500 | { |
nothing calls this directly
no test coverage detected