PropertyManager: Added PropertyManager::propertyExists() method.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@807 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -115,6 +115,11 @@ class PropertyManager {
|
|||||||
std::swap(retain_, rhs.retain_);
|
std::swap(retain_, rhs.retain_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool propertyExists(MeshT &mesh, const char *propname) {
|
||||||
|
PROPTYPE dummy;
|
||||||
|
return mesh.get_property_handle(dummy, propname);
|
||||||
|
}
|
||||||
|
|
||||||
#if __cplusplus > 199711L or __GXX_EXPERIMENTAL_CXX0X__
|
#if __cplusplus > 199711L or __GXX_EXPERIMENTAL_CXX0X__
|
||||||
/**
|
/**
|
||||||
* Move constructor. Transfers ownership (delete responsibility).
|
* Move constructor. Transfers ownership (delete responsibility).
|
||||||
|
|||||||
Reference in New Issue
Block a user