소스 검색

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;
         }