| 1731 | } |
| 1732 | |
| 1733 | static void DestroyInstance(HRigContext context, uint32_t index) |
| 1734 | { |
| 1735 | RigInstance* instance = context->m_Instances.Get(index); |
| 1736 | // If we're going to use memset, then we should explicitly clear pose and instance arrays. |
| 1737 | instance->m_Pose.SetCapacity(0); |
| 1738 | instance->m_IKTargets.SetCapacity(0); |
| 1739 | instance->m_MorphSlots.SetCapacity(0); |
| 1740 | instance->m_MorphWeightsBuffer.SetCapacity(0); |
| 1741 | instance->m_MorphScratch.SetCapacity(0); |
| 1742 | delete instance; |
| 1743 | context->m_Instances.Free(index, true); |
| 1744 | } |
| 1745 | |
| 1746 | Result InstanceCreate(HRigContext context, const InstanceCreateParams& params, HRigInstance* out_instance) |
| 1747 | { |
no test coverage detected