Part: Extend Geometry Extension to have a name
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user