Guest User

Untitled

a guest
Jan 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. int meshCount = meshes_.size();
  2. for (int meshId = 0; meshId < meshCount; meshId++) {
  3. CalMesh* mesh = meshes_[meshId].get();
  4. int submeshCount = mesh->submeshes.size();
  5. for (int submeshId = 0; submeshId < submeshCount; submeshId++) {
  6. CalSubmesh* submesh = mesh->submeshes[submeshId].get();
  7. CalCoreMaterial* material = submesh->material.get();
  8. if (material && !material->maps.empty() && !submesh->coreSubmesh->getVectorVectorTextureCoordinate().empty()) {
  9. NotNull<MaterialDefinition*> mr = checked_cast<MaterialDefinition*>(material->getUserData());
  10. if (mr->texture_ && mr->flags.cellAnimationOn) {
  11. TexturePtr tex = mr->texture_->texture;
  12. mr->cellAnimator_ = makeTextureAnimator(mr->materialDesc_, tex->rect(), mr->texture_->originalSize);
  13. }
  14. }
  15. }
  16. }
Add Comment
Please, Sign In to add comment