Browse Source

Fixed timeScale initial value.

NathanSweet 12 years ago
parent
commit
0b75fc58d4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spine-cocos2dx/src/spine/spine-cocos2dx.cpp

+ 2 - 0
spine-cocos2dx/src/spine/spine-cocos2dx.cpp

@@ -83,6 +83,8 @@ CCSkeleton::CCSkeleton (SkeletonData *skeletonData, AnimationStateData *stateDat
 	blendFunc.src = GL_ONE;
 	blendFunc.dst = GL_ONE_MINUS_SRC_ALPHA;
 
+	timeScale = 1;
+
 	setShaderProgram(CCShaderCache::sharedShaderCache()->programForKey(kCCShader_PositionTextureColor));
 	scheduleUpdate();
 }