Bläddra i källkod

If around compute gathering poses

Signed-off-by: Piotr Jaroszek <[email protected]>
Piotr Jaroszek 2 år sedan
förälder
incheckning
ab84c394e2
1 ändrade filer med 4 tillägg och 1 borttagningar
  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;
         }