| 494 | } |
| 495 | |
| 496 | TransformControls::~TransformControls() |
| 497 | { |
| 498 | hoveredObject_.reset(); |
| 499 | |
| 500 | for ( auto& obj : translateLines_ ) |
| 501 | { |
| 502 | if ( !obj ) |
| 503 | continue; |
| 504 | obj->detachFromParent(); |
| 505 | obj.reset(); |
| 506 | } |
| 507 | |
| 508 | for ( auto& obj : translateControls_ ) |
| 509 | { |
| 510 | if ( !obj ) |
| 511 | continue; |
| 512 | obj->detachFromParent(); |
| 513 | obj.reset(); |
| 514 | } |
| 515 | |
| 516 | for ( auto& obj : rotateLines_ ) |
| 517 | { |
| 518 | if ( !obj ) |
| 519 | continue; |
| 520 | obj->detachFromParent(); |
| 521 | obj.reset(); |
| 522 | } |
| 523 | |
| 524 | for ( auto& obj : rotateControls_ ) |
| 525 | { |
| 526 | if ( !obj ) |
| 527 | continue; |
| 528 | obj->detachFromParent(); |
| 529 | obj.reset(); |
| 530 | } |
| 531 | |
| 532 | if ( activeLine_ ) |
| 533 | { |
| 534 | activeLine_->detachFromParent(); |
| 535 | activeLine_.reset(); |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | void TransformControls::init( std::shared_ptr<Object> parent ) |
| 540 | { |
nothing calls this directly
no test coverage detected