Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int meshCount = meshes_.size();
- for (int meshId = 0; meshId < meshCount; meshId++) {
- CalMesh* mesh = meshes_[meshId].get();
- int submeshCount = mesh->submeshes.size();
- for (int submeshId = 0; submeshId < submeshCount; submeshId++) {
- CalSubmesh* submesh = mesh->submeshes[submeshId].get();
- CalCoreMaterial* material = submesh->material.get();
- if (material && !material->maps.empty() && !submesh->coreSubmesh->getVectorVectorTextureCoordinate().empty()) {
- NotNull<MaterialDefinition*> mr = checked_cast<MaterialDefinition*>(material->getUserData());
- if (mr->texture_ && mr->flags.cellAnimationOn) {
- TexturePtr tex = mr->texture_->texture;
- mr->cellAnimator_ = makeTextureAnimator(mr->materialDesc_, tex->rect(), mr->texture_->originalSize);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment