Merge pull request #756 from aws-lumberyard-dev/Atom/mriegger/15542

Fixing clone function in DecalTextureArrayFeatureProcessor
main
mrieggeramzn 5 years ago committed by GitHub
commit dc8971e80d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,7 +134,14 @@ namespace AZ
{
m_decalData.GetData(decal.GetIndex()) = m_decalData.GetData(sourceDecal.GetIndex());
const auto materialAsset = GetMaterialUsedByDecal(sourceDecal);
m_materialToTextureArrayLookupTable.at(materialAsset).m_useCount++;
if (materialAsset.IsValid())
{
m_materialToTextureArrayLookupTable.at(materialAsset).m_useCount++;
}
else
{
AZ_Warning("DecalTextureArrayFeatureProcessor", false, "CloneDecal called on a decal with no material set.");
}
m_deviceBufferNeedsUpdate = true;
}
return decal;

Loading…
Cancel
Save