str(Sketcher.Constraint('Radius', 1, 2)) should not return "<Constraint '?'>"

str(Sketcher.Constraint('Radius', 1, 2)) should not return "<Constraint '?'>", it should return "<Constraint 'Radius'>"
This commit is contained in:
Georges Dupéron 2017-03-08 00:04:04 +01:00 committed by GitHub
parent 0196d50c48
commit 07d224e25f

View File

@ -484,6 +484,7 @@ std::string ConstraintPy::representation(void) const
case Coincident : result << "'Coincident'>";break;
case Horizontal : result << "'Horizontal' (" << getConstraintPtr()->First << ")>";break;
case Vertical : result << "'Vertical' (" << getConstraintPtr()->First << ")>";break;
case Radius : result << "'Radius'>";break;
case Parallel : result << "'Parallel'>";break;
case Tangent :
if (this->getConstraintPtr()->Third == Constraint::GeoUndef)