MCPcopy Create free account
hub / github.com/defold/defold / GetModelMaxMorphTargetCount

Function GetModelMaxMorphTargetCount

engine/rig/src/rig.cpp:447–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 }
446
447 static uint32_t GetModelMaxMorphTargetCount(const dmRigDDF::Model* model)
448 {
449 uint32_t mcount = 0;
450 for (uint32_t m = 0; m < model->m_Meshes.m_Count; ++m)
451 {
452 mcount = dmMath::Max(mcount, model->m_Meshes[m].m_MorphTargets.m_Count);
453 }
454 return mcount;
455 }
456
457 static void InitMorphSlots(RigInstance* instance)
458 {

Callers 1

InitMorphSlotsFunction · 0.85

Calls 1

MaxFunction · 0.50

Tested by

no test coverage detected