mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[cocos2dx] Initializing skeleton setup poses and world transform on construction to avoid flicked in first frame. Closes #1098
This commit is contained in:
parent
fb2ce44723
commit
7647c345e3
@ -101,6 +101,9 @@ void SkeletonRenderer::initialize () {
|
|||||||
setOpacityModifyRGB(true);
|
setOpacityModifyRGB(true);
|
||||||
|
|
||||||
setupGLProgramState(false);
|
setupGLProgramState(false);
|
||||||
|
|
||||||
|
spSkeleton_setToSetupPose(_skeleton);
|
||||||
|
spSkeleton_updateWorldTransform(_skeleton);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SkeletonRenderer::setupGLProgramState (bool twoColorTintEnabled) {
|
void SkeletonRenderer::setupGLProgramState (bool twoColorTintEnabled) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user