Fixed inline stuff not building under windows

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@63 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2009-02-09 17:55:42 +00:00
parent 9b66c2d22e
commit 090796f746
3 changed files with 11 additions and 65 deletions

View File

@@ -39,6 +39,7 @@
// -------------------- OpenMesh
#include <OpenMesh/Apps/QtViewer/MeshViewerWidgetT.hh>
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/IO/MeshIO.hh>
#include <OpenMesh/Tools/Subdivider/Uniform/Composite/CompositeTraits.hh>
//
@@ -66,7 +67,15 @@ public:
~MeshViewerWidget() {}
/// open mesh
bool open_mesh(const char* _filename, OpenMesh::IO::Options);
inline bool open_mesh(const char* _filename, OpenMesh::IO::Options _opt)
{
if ( Base::open_mesh( _filename, _opt ) )
{
orig_mesh_ = mesh_;
return true;
}
return false;
}
Mesh& orig_mesh() { return orig_mesh_; }
const Mesh& orig_mesh() const { return orig_mesh_; }