[TD]Add uuid tags for cosmetics
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
|
||||
# include <boost/uuid/uuid_io.hpp>
|
||||
#endif
|
||||
|
||||
#include "Cosmetic.h"
|
||||
@@ -108,6 +109,12 @@ PyObject* CosmeticVertexPy::copy(PyObject *args)
|
||||
return cpy;
|
||||
}
|
||||
|
||||
Py::String CosmeticVertexPy::getTag(void) const
|
||||
{
|
||||
std::string tmp = boost::uuids::to_string(getCosmeticVertexPtr()->getTag());
|
||||
return Py::String(tmp);
|
||||
}
|
||||
|
||||
PyObject *CosmeticVertexPy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user