- Изменено
Spine-WebGL, SkeletonDebugRenderer.ts, boneOriginColor
Spine-WebGL
SkeletonDebugRenderer.ts
line 193-200
if (this.drawBones) {
shapes.setColor(this.boneOriginColor);
for (let i = 0, n = bones.length; i < n; i++) {
let bone = bones[i];
if (ignoredBones && ignoredBones.indexOf(bone.data.name) > -1) continue;
shapes.circle(true, bone.worldX, bone.worldY, 3 * this.scale, SkeletonDebugRenderer.GREEN, 8);
}
}
The shapes.circle method is always passing SkeletonDebugRenderer.GREEN color. I was expecting to be able to customize the boneOriginColor like boneLineColor property but it remained green during experimentation.
Good catch. I've fixed this for both 4.1 and 4.2-beta and released new packages to NPM accordingly.