Animation Editor: Creating Motion Sets does not increment them correctly (#4368)

Signed-off-by: Benjamin Jillich <jillich@amazon.com>
This commit is contained in:
Benjamin Jillich
2021-09-30 09:12:41 +02:00
committed by GitHub
parent c00a2b5ef4
commit acea5b7da8
@@ -726,10 +726,12 @@ namespace EMotionFX
{
MCore::LockGuardRecursive lock(m_mutex);
return AZStd::accumulate(begin(m_childSets), end(m_childSets), size_t{0}, [](size_t total, const MotionSet* motionSet)
size_t result = 0;
for (const MotionSet* motionSet : m_childSets)
{
return total + motionSet->GetIsOwnedByRuntime();
});
result += !motionSet->GetIsOwnedByRuntime();
}
return result;
}