| 705 | |
| 706 | bool Animation::IsEmpty() const |
| 707 | { |
| 708 | for (int i = 0; i < MAX_LOD_LEVELS; i++) |
| 709 | { |
| 710 | if (_selection[i] >= 0) |
| 711 | { |
| 712 | return false; |
| 713 | } |
| 714 | } |
| 715 | return true; |
| 716 | } |
| 717 | |
| 718 | void Animation::Restore(LODShape* shape, int level) const |
| 719 | { |
| 720 | if (_selection[level] < 0) |
| 721 | { |
| 722 | return; |
| 723 | } |
| 724 | Shape* lShape = shape->Level(level); |
| 725 | PoseidonAssert(lShape); |
| 726 | if (!lShape->OriginalPosValid()) |
| 727 | { |
| 728 | return; |
| 729 | } |
| 730 | const NamedSelection& sel = lShape->NamedSel(_selection[level]); |
no test coverage detected