Open jaunusa opened 9 years ago
We have a similar problem. We began testing our game on cocos v3.7. And some armature have been shifted from their positions. And some TextBMFont had incorrect characters. Examples V3.6 V3.7 V3.7
Update for 3.7.1 Armature position fixed. TextBMFont not fixed. TextBMFont is incorrect if use text color - "CColor" in scene json.
Create a simple scene in Cocos Studio, add the default armature. Export it and load it into Cocos JS project.
You will see that the position is incorrect. The position can be fixed by calling this function on the armature:
armature.updateOffsetPoint();
I think some miscalculation happens in CCArmature.js (line 383), when this functions are called:
return cc.rectApplyAffineTransform(boundingBox, this.getNodeToParentTransform());
Untill this line the
boundingBox
values are correct.