[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:
Ajinkya Dahale
2022-12-22 15:01:14 +05:30
committed by Chris Hennes
parent e8838b8ef5
commit 63a2855751

View File

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