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

Method isAnimationLooping

Engine/source/Verve/Torque3D/VAnimation.cpp:33–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31//-----------------------------------------------------------------------------
32
33bool VTorque::isAnimationLooping( SceneObjectType *pObject, const char *pData )
34{
35 ShapeBase *shape = dynamic_cast<ShapeBase*>( pObject );
36 if ( !shape || !shape->getShape() )
37 {
38 // Sanity!
39 return false;
40 }
41
42 // Find Sequence.
43 const S32 sequenceIndex = shape->getShape()->findSequence( pData );
44 if ( sequenceIndex == -1 )
45 {
46 // Invalid Sequence.
47 return false;
48 }
49
50 // Return Cyclic.
51 return shape->getShape()->sequences[sequenceIndex].isCyclic();
52}
53
54String VTorque::getAnimation( SceneObjectType *pObject, const U32 &pThreadIndex )
55{

Callers

nothing calls this directly

Calls 3

getShapeMethod · 0.45
findSequenceMethod · 0.45
isCyclicMethod · 0.45

Tested by

no test coverage detected