MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setRotationMembership

Method setRotationMembership

Engine/source/ts/loader/tsShapeLoader.cpp:800–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798}
799
800void TSShapeLoader::setRotationMembership(TSShape::Sequence& seq)
801{
802 for (S32 iNode = 0; iNode < appNodes.size(); iNode++)
803 {
804 // Check if any of the node rotations are different to
805 // the default rotation
806 QuatF defaultRot;
807 shape->defaultRotations[iNode].getQuatF(&defaultRot);
808
809 for (S32 iFrame = 0; iFrame < seq.numKeyframes; iFrame++)
810 {
811 if (nodeRotCache[iNode][iFrame] != defaultRot)
812 {
813 seq.rotationMatters.set(iNode);
814 break;
815 }
816 }
817 }
818}
819
820void TSShapeLoader::setTranslationMembership(TSShape::Sequence& seq)
821{

Callers

nothing calls this directly

Calls 3

getQuatFMethod · 0.80
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected