| 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 | { |