Skip to content

Commit

Permalink
Merge pull request #500 from gazebosim/azeey/3_to_4
Browse files Browse the repository at this point in the history
Merge ign-common3 ➡️  ign-common4
  • Loading branch information
azeey authored Mar 30, 2023
2 parents 5e97e6c + 0fd1f5e commit 0297942
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graphics/include/gz/common/MeshManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ namespace ignition
/// Destroys the collada loader, the stl loader and all the meshes
private: virtual ~MeshManager();

/// Return a pointer to the mesh manager
/// \todo(ahcorde) Remove inheritance from Singleton base class
/// \return a pointer to the mesh manager
public: static MeshManager* Instance();

/// \brief Load a mesh from a file.
/// The mesh will be searched on the global SystemPaths instance provided
/// by Util.hh.
Expand Down
6 changes: 6 additions & 0 deletions graphics/src/MeshManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1614,3 +1614,9 @@ void MeshManager::ConvertPolylinesToVerticesAndEdges(
}
}
}

//////////////////////////////////////////////////
MeshManager* MeshManager::Instance()
{
return SingletonT<MeshManager>::Instance();
}

0 comments on commit 0297942

Please sign in to comment.