[TD]Add uuid tags for cosmetics

This commit is contained in:
wandererfan
2019-07-22 11:48:40 -04:00
committed by WandererFan
parent c6670c7431
commit ffcafaf1a5
11 changed files with 236 additions and 35 deletions

View File

@@ -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;