[cocos2dx] Initializing skeleton setup poses and world transform on construction to avoid flicked in first frame. Closes #1098

This commit is contained in:
badlogic 2018-04-12 10:42:34 +02:00
parent fb2ce44723
commit 7647c345e3

View File

@ -101,6 +101,9 @@ void SkeletonRenderer::initialize () {
setOpacityModifyRGB(true);
setupGLProgramState(false);
spSkeleton_setToSetupPose(_skeleton);
spSkeleton_updateWorldTransform(_skeleton);
}
void SkeletonRenderer::setupGLProgramState (bool twoColorTintEnabled) {