最近用了一个龙骨导致游戏奔溃了,查了代码,发现是龙骨网格导致的,但是不知道具体原因是什么。求大佬相助~-~,报错位置在这里:
void FFDTimelineState::_onArriveAtFrame(bool isUpdate)
{
TweenTimelineState::_onArriveAtFrame(isUpdate);
_tweenFFD = TweenType::None;
if (this->_tweenEasing != NO_TWEEN || this->_curve)
{
_tweenFFD = this->_updateExtensionKeyFrame(*this->_currentFrame, *this->_currentFrame->next, *_durationFFDFrame);
}
if (_tweenFFD == TweenType::None)
{
const auto& currentFFDVertices = this->_currentFrame->tweens;
for (std::size_t i = 0, l = currentFFDVertices.size(); i < l; ++i)
{
if ((*_slotFFDVertices)[i] != currentFFDVertices[i]);//此处_slotFFDVertices数组越界了,size为110,
//currentFFDVerticessize为146
{
_tweenFFD = TweenType::Once;
break;
}
}
}
}
龙骨的版本是5.0,在2dx和creator上都一样的报错,求相助