Browse Source

Properly update animation proxy with morph shapes

BearishSun 9 years ago
parent
commit
76f7e79516
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/BansheeCore/Source/BsAnimation.cpp

+ 1 - 1
Source/BansheeCore/Source/BsAnimation.cpp

@@ -368,7 +368,7 @@ namespace BansheeEngine
 						MorphShapeInfo& shapeInfo = morphShapeInfos[currentShapeIdx];
 						new (&shapeInfo.shape) SPtr<MorphShape>();
 
-						SPtr<MorphShape> shape = morphChannel->getShape(currentShapeIdx);
+						SPtr<MorphShape> shape = morphChannel->getShape(j);
 						shapeInfo.shape = shape;
 						shapeInfo.frameWeight = shape->getWeight();
 						shapeInfo.finalWeight = 0.0f;