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

Method Restore

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

Source from the content-addressed store, hash-verified

705
706bool 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
718void 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]);

Callers 1

DeanimateMethod · 0.45

Calls 13

LevelMethod · 0.80
OriginalPosValidMethod · 0.80
OrigPosMethod · 0.80
InvalidateBufferMethod · 0.80
GetVertexMethod · 0.80
SizeMethod · 0.45
SetPosMethod · 0.45
GetTextureMethod · 0.45
NMethod · 0.45
SetUMethod · 0.45
UToPhysicalMethod · 0.45
SetVMethod · 0.45

Tested by

no test coverage detected