Convert EMotionFX editor uint32 -> size_t

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2021-06-02 16:33:36 -07:00
parent 4034195bdc
commit 120ee64144
125 changed files with 1503 additions and 2128 deletions
@@ -171,7 +171,7 @@ namespace EMotionFX
SimulatedJoint* parentJoint = childJoint->FindParentSimulatedJoint();
if (parentJoint)
{
return createIndex(parentJoint->CalculateChildIndex(), 0, parentJoint);
return createIndex(aznumeric_caster(parentJoint->CalculateChildIndex()), 0, parentJoint);
}
else
{
@@ -377,7 +377,7 @@ namespace EMotionFX
return QModelIndex();
}
void SimulatedObjectModel::AddJointsToSelection(QItemSelection& selection, size_t objectIndex, const AZStd::vector<AZ::u32>& jointIndices)
void SimulatedObjectModel::AddJointsToSelection(QItemSelection& selection, size_t objectIndex, const AZStd::vector<size_t>& jointIndices)
{
if (!m_actor || !m_actor->GetSimulatedObjectSetup())
{
@@ -392,12 +392,12 @@ namespace EMotionFX
return;
}
for (AZ::u32 jointIndex : jointIndices)
for (const size_t jointIndex : jointIndices)
{
SimulatedJoint* joint = object->FindSimulatedJointBySkeletonJointIndex(jointIndex);
if (!joint)
{
AZ_Warning("EMotionFX", false, "Simulated joint with joint index %d does not exist", jointIndex);
AZ_Warning("EMotionFX", false, "Simulated joint with joint index %zu does not exist", jointIndex);
continue;
}
int row = static_cast<int>(joint->CalculateChildIndex());