| 628 | } |
| 629 | |
| 630 | void Scb::Scene::removeConstraint(Scb::Constraint& constraint) |
| 631 | { |
| 632 | if (!mIsBuffering) |
| 633 | { |
| 634 | mScene.removeConstraint(constraint.getScConstraint()); |
| 635 | |
| 636 | // Release pvd constraint immediately since delayed removal with already released ext::joints does not work, can't call callback. |
| 637 | if(constraint.getControlState() != ControlState::eINSERT_PENDING) |
| 638 | RELEASE_PVD_INSTANCE(&constraint) |
| 639 | |
| 640 | constraint.resetControl(ControlState::eNOT_IN_SCENE); |
| 641 | constraint.setScbScene(NULL); |
| 642 | } |
| 643 | else |
| 644 | { |
| 645 | mConstraintManager.scheduleForRemove(constraint); |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | /////////////////////////////////////////////////////////////////////////////// |
| 650 |
no test coverage detected