2
0
Эх сурвалжийг харах

Update NetworkAnimationComponent pre render hooks

Signed-off-by: puvvadar <[email protected]>
puvvadar 4 жил өмнө
parent
commit
f0b17fa8dc

+ 2 - 2
Gem/Code/Source/Components/NetworkAnimationComponent.cpp

@@ -28,7 +28,7 @@ namespace MultiplayerSample
     }
 
     NetworkAnimationComponent::NetworkAnimationComponent()
-        : m_preRenderEventHandler([this](float deltaTime, float blendFactor) {OnPreRender(deltaTime, blendFactor); })
+        : m_preRenderEventHandler([this](float deltaTime) {OnPreRender(deltaTime); })
     {
         ;
     }
@@ -84,7 +84,7 @@ namespace MultiplayerSample
         return true;
     }
 
-    void NetworkAnimationComponent::OnPreRender([[maybe_unused]] float deltaTime, [[maybe_unused]] float blendFactor)
+    void NetworkAnimationComponent::OnPreRender(float deltaTime)
     {
         if (m_animationGraph == nullptr || m_networkRequests == nullptr)
         {

+ 1 - 1
Gem/Code/Source/Components/NetworkAnimationComponent.h

@@ -51,7 +51,7 @@ namespace MultiplayerSample
         bool GetJointTransformById(int32_t boneId, AZ::Transform& outJointTransform) const;
 
     private:
-        void OnPreRender(float deltaTime, float blendFactor);
+        void OnPreRender(float deltaTime);
 
         //! EMotionFX::Integration::ActorComponentNotificationBus::Handler
         //! @{