SceneProcessing

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-18 16:14:49 -07:00
committed by Esteban Papp
parent 9a5265d77d
commit 41a1cb58cf
2 changed files with 3 additions and 3 deletions
@@ -651,7 +651,7 @@ namespace AZ::SceneGenerationComponents
const auto& faceInfo = optimizedMesh->GetFaceInfo(optimizedMesh->GetFaceCount() - 1);
AZStd::copy(AZStd::begin(faceInfo.vertexIndex), AZStd::end(faceInfo.vertexIndex), AZStd::inserter(usedIndexes, usedIndexes.begin()));
}
indexOffset += usedIndexes.size();
indexOffset += static_cast<unsigned int>(usedIndexes.size());
}
AZStd::unique_ptr<SkinWeightData> optimizedSkinWeights;
@@ -55,7 +55,7 @@ namespace AZ::TangentGeneration::BlendShape::MikkT
{
MikktCustomData* customData = static_cast<MikktCustomData*>(context->m_pUserData);
const AZ::u32 vertexIndex = customData->m_blendShapeData->GetFaceVertexIndex(face, vert);
const AZ::Vector2& uv = customData->m_blendShapeData->GetUV(vertexIndex, customData->m_uvSetIndex);
const AZ::Vector2& uv = customData->m_blendShapeData->GetUV(vertexIndex, static_cast<unsigned int>(customData->m_uvSetIndex));
texOut[0] = uv.GetX();
texOut[1] = uv.GetY();
}
@@ -105,7 +105,7 @@ namespace AZ::TangentGeneration::BlendShape::MikkT
AZ::SceneAPI::DataTypes::MikkTSpaceMethod tSpaceMethod)
{
// Create tangent and bitangent data sets and relate them to the given UV set.
const AZStd::vector<AZ::Vector2>& uvSet = blendShapeData->GetUVs(uvSetIndex);
const AZStd::vector<AZ::Vector2>& uvSet = blendShapeData->GetUVs(static_cast<AZ::u8>(uvSetIndex));
if (uvSet.empty())
{
AZ_Error(AZ::SceneAPI::Utilities::ErrorWindow, false,