oldrot = 0;
targetrot = 0;
}
+ if (frameCurrent >= Animation::animations[animCurrent].frames.size()) {
+ frameCurrent = Animation::animations[animCurrent].frames.size() - 1;
+ }
if (animCurrent != oldanimCurrent || animTarget != oldanimTarget || ((frameCurrent != oldframeCurrent || frameTarget != oldframeTarget) && !calcrot)) {
//Old rotates
for (int i = 0; i < skeleton.joints.size(); i++) {
}
}
}
- if (frameCurrent >= Animation::animations[animCurrent].frames.size()) {
- frameCurrent = Animation::animations[animCurrent].frames.size() - 1;
- }
oldanimCurrent = animCurrent;
oldanimTarget = animTarget;