Переглянути джерело

Fix for gathering poses service

Signed-off-by: Piotr Jaroszek <[email protected]>
Piotr Jaroszek 2 роки тому
батько
коміт
9bc574e7de

+ 0 - 1
Project/Gem/Source/ApplePicker/GatheringRowComponent.cpp

@@ -50,7 +50,6 @@ namespace AppleKraken
 
     void GatheringRowComponent::Activate()
     {
-        ComputeGatheringPoses();
         GatheringRowRequestBus::Handler::BusConnect();
     }
 

+ 2 - 1
Project/Gem/Source/ApplePicker/GatheringRowComponent.h

@@ -24,8 +24,9 @@ namespace AppleKraken
         static void Reflect(AZ::ReflectContext* context);
 
         //! First on the list is always the start pose, the last is the end pose
-        GatheringPoses GetGatheringPoses() const override
+        GatheringPoses GetGatheringPoses() override
         {
+            ComputeGatheringPoses();
             return m_gatheringPoses;
         }
 

+ 1 - 1
Project/Gem/Source/ApplePicker/GatheringRowRequests.h

@@ -21,7 +21,7 @@ namespace AppleKraken
     {
     public:
         static constexpr AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Multiple;
-        virtual GatheringPoses GetGatheringPoses() const = 0;
+        virtual GatheringPoses GetGatheringPoses() = 0;
     };
 
     using GatheringRowRequestBus = AZ::EBus<GatheringRowRequests>;