ソースを参照

Fixes cloning issue in character sample.

sgrenier 12 年 前
コミット
af1d747ca3
1 ファイル変更1 行追加1 行削除
  1. 1 1
      samples/character/src/CharacterGame.cpp

+ 1 - 1
samples/character/src/CharacterGame.cpp

@@ -602,7 +602,7 @@ void CharacterGame::animationEvent(AnimationClip* clip, AnimationClip::Listener:
 
 
 void CharacterGame::clone()
 void CharacterGame::clone()
 {
 {
-    Node* clone = _scene->findNode("boyRotation")->clone();
+    Node* clone = _scene->findNode("boycharacter")->clone();
     Animation* cloneAnimation = clone->getAnimation();
     Animation* cloneAnimation = clone->getAnimation();
 
 
     // Find the current clip and have the clone play that clip repeatedly.
     // Find the current clip and have the clone play that clip repeatedly.