MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Unhide

Method Unhide

engine/Poseidon/World/Simulation/Animation/Animation.cpp:884–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
895void 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);

Callers 15

DrawProxiesMethod · 0.80
DrawMethod · 0.80
ShowHeadMethod · 0.80
AnimateMethod · 0.80
AnimateMethod · 0.80
DeanimateMethod · 0.80
AnimateMethod · 0.80
DrawProxiesMethod · 0.80
AnimateMethod · 0.80
DeanimateMethod · 0.80
AnimateMethod · 0.80
DeanimateMethod · 0.80

Calls 5

LevelMethod · 0.80
SizeMethod · 0.45
AndSpecialMethod · 0.45
NSectionsMethod · 0.45
GetSectionMethod · 0.45

Tested by

no test coverage detected