| 859 | for (int i = 0; i < faces.Size(); i++) |
| 860 | { |
| 861 | Poly& face = lShape->Face(faces[i]); |
| 862 | face.SetTexture(texture); |
| 863 | } |
| 864 | for (int i = 0; i < sel.NSections(); i++) |
| 865 | { |
| 866 | int sec = sel.GetSection(i); |
| 867 | ShapeSection& ss = lShape->GetSection(sec); |
| 868 | ss.properties.SetTexture(texture); |
| 869 | } |
| 870 | } |
| 871 | |
| 872 | void AnimationSection::Hide(LODShape* shape, int level) const |
| 873 | { |
| 874 | if (_selection[level] < 0) |
| 875 | { |
| 876 | return; |
| 877 | } |
| 878 | Shape* lShape = shape->Level(level); |
| 879 | PoseidonAssert(lShape); |
| 880 | const NamedSelection& sel = lShape->NamedSel(_selection[level]); |
| 881 | const FaceSelection& faces = sel.FaceOffsets(lShape); |
| 882 | for (int i = 0; i < faces.Size(); i++) |
| 883 | { |
| 884 | Poly& face = lShape->Face(faces[i]); |
| 885 | face.OrSpecial(IsHidden); |
no test coverage detected