Browse Source

If around compute gathering poses

Signed-off-by: Piotr Jaroszek <[email protected]>
Piotr Jaroszek 2 năm trước cách đây
mục cha
commit
ab84c394e2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      Project/Gem/Source/ApplePicker/GatheringRowComponent.h

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

@@ -26,7 +26,10 @@ namespace AppleKraken
         //! First on the list is always the start pose, the last is the end pose
         GatheringPoses GetGatheringPoses() override
         {
-            ComputeGatheringPoses();
+            if (m_gatheringPoses.empty())
+            {
+                ComputeGatheringPoses();
+            }
             return m_gatheringPoses;
         }