mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +00:00
fix some asserts
This commit is contained in:
parent
e27a031229
commit
ff035a37fa
2 changed files with 3 additions and 3 deletions
|
@ -1604,7 +1604,7 @@ void AnimationEditor::applyBoneToSplineGrid()
|
|||
Animation *a = editSprite->getCurrentAnimation();
|
||||
BoneKeyframe *bk = a->getKeyframe(currentKey)->getBoneKeyframe(editingBone->boneIdx);
|
||||
assert(bk->controlpoints.size() == splinegrid->getSpline().ctrlX() * splinegrid->getSpline().ctrlY());
|
||||
assert(bk->grid.size() == editingBone->getDrawGrid().linearsize());
|
||||
assert(bk->grid.size() == editingBone->getGrid()->linearsize());
|
||||
splinegrid->importControlPoints(&bk->controlpoints[0]);
|
||||
}
|
||||
}
|
||||
|
@ -1616,7 +1616,7 @@ void AnimationEditor::applySplineGridToBone()
|
|||
Animation *a = editSprite->getCurrentAnimation();
|
||||
BoneKeyframe *bk = a->getKeyframe(currentKey)->getBoneKeyframe(editingBone->boneIdx);
|
||||
assert(bk->controlpoints.size() == splinegrid->getSpline().ctrlX() * splinegrid->getSpline().ctrlY());
|
||||
assert(bk->grid.size() == editingBone->getDrawGrid().linearsize());
|
||||
assert(bk->grid.size() == editingBone->getGrid()->linearsize());
|
||||
splinegrid->exportControlPoints(&bk->controlpoints[0]);
|
||||
BoneGridInterpolator *interp = a->getBoneGridInterpolator(editingBone->boneIdx);
|
||||
interp->updateGridAndBone(*bk, editingBone);
|
||||
|
|
|
@ -1073,7 +1073,7 @@ bool SkeletalSprite::saveSkeletal(const std::string &fn)
|
|||
const BoneGridInterpolator& bgip = a->interpolators[j];
|
||||
XMLElement *interp = xml->NewElement("Interpolator");
|
||||
Bone *bone = this->getBoneByIdx(bgip.idx);
|
||||
assert(bone->gridType == Quad::GRID_INTERP);
|
||||
assert(bone->grid->gridType == GRID_INTERP);
|
||||
if(bgip.storeBoneByIdx)
|
||||
interp->SetAttribute("bone", (int)bone->boneIdx);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue