| 469 | } |
| 470 | |
| 471 | void Cloth::OnEnable() |
| 472 | { |
| 473 | GetSceneRendering()->AddActor(this, _sceneRenderingKey); |
| 474 | #if USE_EDITOR |
| 475 | GetSceneRendering()->AddPhysicsDebug(this); |
| 476 | #endif |
| 477 | #if WITH_CLOTH |
| 478 | if (_cloth) |
| 479 | PhysicsBackend::AddCloth(GetPhysicsScene()->GetPhysicsScene(), _cloth); |
| 480 | #endif |
| 481 | |
| 482 | Actor::OnEnable(); |
| 483 | } |
| 484 | |
| 485 | void Cloth::OnDisable() |
| 486 | { |
nothing calls this directly
no test coverage detected