动画编辑器最终输出文件duration属性问题 | duration attr problem in .ExportJson file of animation editor

版本 : cocostudio 1.2.0.1 cocos2d-x 3.0beta
version : cocostudio 1.2.0.1 cocos2d-x 3.0beta

在动画编辑器的输出文件(.ExportJson文件)中,animation_data/mov_data的所有元素的dr属性都是动画长度-1(正确的是没有-1).这导致的结果是动画的最后一帧被略过了,看起来动作不连贯.

In the animation editor output file (. ExportJson file), dr attr of all elements under animation_data / mov_data was FRAMES_COUNT -1(not FRAMES_COUNT).This leads to the result of the last frame of the animation is skipped, the action does not seem coherent.

临时解决办法:
在读取这个dr属性的时候加上1, 如下:

CCDataReaderHelper.cpp 1450行:
movementData->duration = DICTOOL->getIntValue_json(json, A_DURATION, 0);
// 加入下面这行
movementData->duration += 1;

Temporary solution:
when dr attr was reading, +1 to it, as follow:

CCDataReaderHelper.cpp line:1450
movementData->duration = DICTOOL->getIntValue_json(json, A_DURATION, 0);
// add this line
movementData->duration += 1;