diff --git a/cocos/3d/CCAnimate3D.cpp b/cocos/3d/CCAnimate3D.cpp index c359194843..0aff12f2d1 100644 --- a/cocos/3d/CCAnimate3D.cpp +++ b/cocos/3d/CCAnimate3D.cpp @@ -96,17 +96,19 @@ void Animate3D::startWithTarget(Node *target) _boneCurves.clear(); auto skin = sprite->getSkeleton(); + bool hasCurve = false; for (unsigned int i = 0; i < skin->getBoneCount(); i++) { auto bone = skin->getBoneByIndex(i); auto curve = _animation->getBoneCurveByName(bone->getName()); if (curve) { _boneCurves[bone] = curve; + hasCurve = true; } - else - { - CCLOG("warning: bone %s not find in animation", bone->getName().c_str()); - } + } + if (!hasCurve) + { + CCLOG("warning: no animation finde for the skeleton"); } }