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

Function GetMorphWeightSlot

engine/rig/src/rig.cpp:420–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 static MorphWeightSlot* GetMorphWeightSlot(RigInstance* instance, uint64_t model_id)
421 {
422 for (uint32_t i = 0; i < instance->m_MorphSlots.Size(); ++i)
423 {
424 if (instance->m_MorphSlots[i].m_ModelId == model_id)
425 {
426 return &instance->m_MorphSlots[i];
427 }
428 }
429 return 0x0;
430 }
431
432 static void ResetMorphWeights(RigInstance* instance)
433 {

Callers 3

ApplyMorphAnimationFunction · 0.85
GetMorphWeightsFunction · 0.85
SetMorphWeightsFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected