Fixing clone function
This commit is contained in:
@@ -134,7 +134,10 @@ 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++;
|
||||
}
|
||||
m_deviceBufferNeedsUpdate = true;
|
||||
}
|
||||
return decal;
|
||||
|
||||
Reference in New Issue
Block a user