| 882 | for (int i = 0; i < faces.Size(); i++) |
| 883 | { |
| 884 | Poly& face = lShape->Face(faces[i]); |
| 885 | face.OrSpecial(IsHidden); |
| 886 | } |
| 887 | for (int i = 0; i < sel.NSections(); i++) |
| 888 | { |
| 889 | int sec = sel.GetSection(i); |
| 890 | ShapeSection& ss = lShape->GetSection(sec); |
| 891 | ss.properties.OrSpecial(IsHidden); |
| 892 | } |
| 893 | } |
| 894 | |
| 895 | void AnimationSection::Unhide(LODShape* shape, int level) const |
| 896 | { |
| 897 | if (_selection[level] < 0) |
| 898 | { |
| 899 | return; |
| 900 | } |
| 901 | Shape* lShape = shape->Level(level); |
| 902 | PoseidonAssert(lShape); |
| 903 | const NamedSelection& sel = lShape->NamedSel(_selection[level]); |
| 904 | const FaceSelection& faces = sel.FaceOffsets(lShape); |
| 905 | for (int i = 0; i < faces.Size(); i++) |
| 906 | { |
| 907 | Poly& face = lShape->Face(faces[i]); |
| 908 | face.AndSpecial(~IsHidden); |
no test coverage detected