From c07c7d822ecd3374434abd81b226b77698195bea Mon Sep 17 00:00:00 2001 From: mriegger Date: Thu, 13 May 2021 21:16:32 -0700 Subject: [PATCH] Adding warning feedback from mnaumov --- .../Code/Source/Decals/DecalTextureArrayFeatureProcessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gems/Atom/Feature/Common/Code/Source/Decals/DecalTextureArrayFeatureProcessor.cpp b/Gems/Atom/Feature/Common/Code/Source/Decals/DecalTextureArrayFeatureProcessor.cpp index e4bb379c6a..febb0b16c5 100644 --- a/Gems/Atom/Feature/Common/Code/Source/Decals/DecalTextureArrayFeatureProcessor.cpp +++ b/Gems/Atom/Feature/Common/Code/Source/Decals/DecalTextureArrayFeatureProcessor.cpp @@ -138,6 +138,10 @@ namespace AZ { 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;