Helios - LYN-3250 - Fixed morph targets for meshes that had multiple … (#696)
* Helios - LYN-3250 - Fixed morph targets for meshes that had multiple materials (#374) Fixed morph targets for meshes that had multiple materials and were split by AssImp: Recombined them into one mesh in the O3DE scene graph, so the behavior would match FBX SDK.
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ namespace AZ::SceneGenerationComponents
|
||||
{
|
||||
for (size_t controlPointIndex = 0; controlPointIndex < skinData.get().GetVertexCount(); ++controlPointIndex)
|
||||
{
|
||||
const int usedPointIndex = meshData->GetUsedPointIndexForControlPoint(aznumeric_caster(controlPointIndex));
|
||||
const int usedPointIndex = meshData->GetUsedPointIndexForControlPoint(meshData->GetControlPointIndex(aznumeric_caster(controlPointIndex)));
|
||||
const size_t linkCount = skinData.get().GetLinkCount(controlPointIndex);
|
||||
|
||||
if (usedPointIndex < 0 || linkCount == 0)
|
||||
|
||||
Reference in New Issue
Block a user