فهرست منبع

If around compute gathering poses

Signed-off-by: Piotr Jaroszek <[email protected]>
Piotr Jaroszek 2 سال پیش
والد
کامیت
ab84c394e2
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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;
         }