Просмотр исходного кода

Properly update animation proxy with morph shapes

BearishSun 9 лет назад
Родитель
Сommit
76f7e79516
1 измененных файлов с 1 добавлено и 1 удалено
  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;