mirror of https://github.com/axmolengine/axmol.git
remove warning
This commit is contained in:
parent
e09d705280
commit
7ff75fb397
|
@ -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
|
||||
}
|
||||
if (!hasCurve)
|
||||
{
|
||||
CCLOG("warning: bone %s not find in animation", bone->getName().c_str());
|
||||
}
|
||||
CCLOG("warning: no animation finde for the skeleton");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue