| 853 | } |
| 854 | |
| 855 | static Result PostUpdate(HRigContext context) |
| 856 | { |
| 857 | const dmArray<RigInstance*>& instances = context->m_Instances.GetRawObjects(); |
| 858 | uint32_t count = instances.Size(); |
| 859 | bool updated_pose = false; |
| 860 | for (uint32_t i = 0; i < count; ++i) |
| 861 | { |
| 862 | RigInstance* instance = instances[i]; |
| 863 | if (DoPostUpdate(instance)) { |
| 864 | updated_pose = true; |
| 865 | } |
| 866 | } |
| 867 | |
| 868 | return updated_pose ? dmRig::RESULT_UPDATED_POSE : dmRig::RESULT_OK; |
| 869 | } |
| 870 | |
| 871 | static bool DoPostUpdate(RigInstance* instance) |
| 872 | { |
no test coverage detected