From b24baf4e8b3ea611aad2079eba20ceeb9349717e Mon Sep 17 00:00:00 2001 From: Valentin Bas Date: Tue, 21 Jul 2020 15:57:23 +0200 Subject: [PATCH] Allows to call SetMatrixFull on DecalRenderNode for PopcornFX decals --- dev/Code/CryEngine/Cry3DEngine/DecalRenderNode.h | 2 +- dev/Code/CryEngine/CryCommon/IEntityRenderState.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/Code/CryEngine/Cry3DEngine/DecalRenderNode.h b/dev/Code/CryEngine/Cry3DEngine/DecalRenderNode.h index 0353afdaa8..264894dadc 100644 --- a/dev/Code/CryEngine/Cry3DEngine/DecalRenderNode.h +++ b/dev/Code/CryEngine/Cry3DEngine/DecalRenderNode.h @@ -60,7 +60,7 @@ class CDecalRenderNode static void ResetDecalUpdatesCounter() { CDecalRenderNode::m_nFillBigDecalIndicesCounter = 0; } // SetMatrix only supports changing position, this will do the full transform - void SetMatrixFull(const Matrix34& mat); + virtual void SetMatrixFull(const Matrix34& mat); public: CDecalRenderNode(); void RequestUpdate() { m_updateRequested = true; DeleteDecal(); } diff --git a/dev/Code/CryEngine/CryCommon/IEntityRenderState.h b/dev/Code/CryEngine/CryCommon/IEntityRenderState.h index 01f01c9343..bbd832b675 100644 --- a/dev/Code/CryEngine/CryCommon/IEntityRenderState.h +++ b/dev/Code/CryEngine/CryCommon/IEntityRenderState.h @@ -818,6 +818,7 @@ struct IDecalRenderNode virtual const SDecalProperties* GetDecalProperties() const = 0; virtual const Matrix34& GetMatrix() = 0; virtual void CleanUpOldDecals() = 0; + virtual void SetMatrixFull(const Matrix34& mat) = 0; // };