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

Function GetMorphWeights

engine/rig/src/rig.cpp:1655–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1653 }
1654
1655 const float* GetMorphWeights(HRigInstance instance, uint64_t model_id, uint32_t* out_count)
1656 {
1657 if (instance == 0x0)
1658 {
1659 return 0x0;
1660 }
1661 MorphWeightSlot* slot = GetMorphWeightSlot(instance, model_id);
1662 if (!slot)
1663 {
1664 return 0x0;
1665 }
1666 *out_count = slot->m_MorphCount;
1667 return instance->m_MorphWeightsBuffer.Begin() + slot->m_BufferOffset;
1668 }
1669
1670 void SetMorphWeights(HRigInstance instance, uint64_t model_id, const float* weights, uint32_t count)
1671 {

Callers 3

TESTFunction · 0.50
CompModelGetBlendWeightsFunction · 0.50

Calls 2

GetMorphWeightSlotFunction · 0.85
BeginMethod · 0.45

Tested by 1

TESTFunction · 0.40