mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9072 from andyque/fixCompileError
fix compile error
This commit is contained in:
commit
8e3590978d
|
@ -1114,7 +1114,7 @@ void Sprite3DReskinTest::onTouchesEnded(const std::vector<Touch*>& touches, Even
|
|||
void Sprite3DReskinTest::applyCurSkin()
|
||||
{
|
||||
for (ssize_t i = 0; i < _sprite->getMeshCount(); i++) {
|
||||
auto mesh = _sprite->getMeshByIndex(i);
|
||||
auto mesh = _sprite->getMeshByIndex(static_cast<int>(i));
|
||||
bool isVisible = false;
|
||||
for (auto& it : _curSkin) {
|
||||
if (mesh->getName() == it.second)
|
||||
|
@ -1123,7 +1123,7 @@ void Sprite3DReskinTest::applyCurSkin()
|
|||
break;
|
||||
}
|
||||
}
|
||||
_sprite->getMeshByIndex(i)->setVisible(isVisible);
|
||||
_sprite->getMeshByIndex(static_cast<int>(i))->setVisible(isVisible);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue