Part: Extend Geometry Extension to have a name

This commit is contained in:
Abdullah Tahiri
2019-02-10 17:22:42 +01:00
committed by wmayer
parent 5f46862caa
commit beec449180
8 changed files with 72 additions and 11 deletions

View File

@@ -38,7 +38,13 @@ using namespace Part;
std::string GeometryStringExtensionPy::representation(void) const
{
std::stringstream str;
str << "<GeometryStringExtension (" << getGeometryStringExtensionPtr()->getValue() << ") >";
str << "<GeometryStringExtension (" ;
if(getGeometryStringExtensionPtr()->getName().size()>0)
str << "\'" << getGeometryStringExtensionPtr()->getName() << "\', ";
str << getGeometryStringExtensionPtr()->getValue() << ") >";
return str.str();
}