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

Method setRotationMembership

Engine/source/ts/loader/tsShapeLoader.cpp:799–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getQuatFMethod · 0.80
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected