Skip to content

Commit 0fd1f5e

Browse files
committed
Merge 3 into 4
Signed-off-by: Addisu Z. Taddese <[email protected]>
2 parents 5e97e6c + 086980c commit 0fd1f5e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

graphics/include/gz/common/MeshManager.hh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ namespace ignition
5757
/// Destroys the collada loader, the stl loader and all the meshes
5858
private: virtual ~MeshManager();
5959

60+
/// Return a pointer to the mesh manager
61+
/// \todo(ahcorde) Remove inheritance from Singleton base class
62+
/// \return a pointer to the mesh manager
63+
public: static MeshManager* Instance();
64+
6065
/// \brief Load a mesh from a file.
6166
/// The mesh will be searched on the global SystemPaths instance provided
6267
/// by Util.hh.

graphics/src/MeshManager.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,3 +1614,9 @@ void MeshManager::ConvertPolylinesToVerticesAndEdges(
16141614
}
16151615
}
16161616
}
1617+
1618+
//////////////////////////////////////////////////
1619+
MeshManager* MeshManager::Instance()
1620+
{
1621+
return SingletonT<MeshManager>::Instance();
1622+
}

0 commit comments

Comments
 (0)