MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetAnimationCount

Method GetAnimationCount

trinity/Resources/TriGeometryRes.cpp:295–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293#endif
294
295unsigned int TriGeometryRes::GetAnimationCount() const
296{
297 if( IsUsingCMF() )
298 {
299 if( IsGood() && m_cmfContents )
300 {
301 return (int)m_cmfContents.GetData()->animations.size();
302 }
303 }
304#if WITH_GRANNY
305 else
306 {
307 if( auto info = GetGrannyInfo() )
308 {
309 return info->AnimationCount;
310 }
311 }
312#endif
313 return 0;
314}
315
316unsigned int TriGeometryRes::GetMeshCount() const
317{

Callers

nothing calls this directly

Calls 4

IsUsingCMFFunction · 0.85
sizeMethod · 0.80
ifFunction · 0.70
GetDataMethod · 0.45

Tested by

no test coverage detected