[Sketcher] Disallow tangent-at-knot for non-line in solver
This is already stopped in the GUI, but this is still possible by passing the curve IDs through the console.
This commit is contained in:
committed by
Chris Hennes
parent
e8838b8ef5
commit
63a2855751
@@ -1737,7 +1737,9 @@ int Sketch::addConstraint(const Constraint *constraint)
|
||||
|
||||
auto linegeoid = checkGeoId(constraint->Second);
|
||||
|
||||
rtn = addTangentLineAtBSplineKnotConstraint(linegeoid, bsplinegeoid, knotgeoId);
|
||||
if (Geoms[linegeoid].type == Line)
|
||||
rtn = addTangentLineAtBSplineKnotConstraint(
|
||||
linegeoid, bsplinegeoid, knotgeoId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user