Skip to content

Commit

Permalink
Merge branch 'main' into hidmic/csv-data
Browse files Browse the repository at this point in the history
  • Loading branch information
hidmic authored Aug 16, 2022
2 parents 4008a99 + 81c2ebd commit be13770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions graphics/src/AssimpLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,7 @@ SubMesh AssimpLoader::Implementation::CreateSubMesh(
math::Vector3d texcoords;
texcoords.X(_assimpMesh->mTextureCoords[uvIdx][vertexIdx].x);
texcoords.Y(_assimpMesh->mTextureCoords[uvIdx][vertexIdx].y);
// TODO(luca) why do we need 1.0 - Y?
subMesh.AddTexCoordBySet(texcoords.X(), 1.0 - texcoords.Y(), uvIdx);
subMesh.AddTexCoordBySet(texcoords.X(), texcoords.Y(), uvIdx);
++uvIdx;
}
}
Expand Down Expand Up @@ -618,6 +617,7 @@ Mesh *AssimpLoader::Load(const std::string &_filename)
aiProcess_JoinIdenticalVertices |
aiProcess_RemoveRedundantMaterials |
aiProcess_SortByPType |
aiProcess_FlipUVs |
#ifndef GZ_ASSIMP_PRE_5_2_0
aiProcess_PopulateArmatureData |
#endif
Expand Down
1 change: 0 additions & 1 deletion graphics/src/MeshManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ MeshManager::MeshManager()
this->dataPtr->fileExtensions.insert("gltf");
this->dataPtr->fileExtensions.insert("glb");
this->dataPtr->fileExtensions.insert("fbx");

}

//////////////////////////////////////////////////
Expand Down

0 comments on commit be13770

Please sign in to comment.