[Sketcher] Add missing check in deriveConstraintsForPieces

Fixes #19770.
This commit is contained in:
Ajinkya Dahale
2025-03-14 01:23:04 +05:30
committed by Benjamin Nauck
parent b984ee0d57
commit 18fe29d0b5

View File

@@ -4119,6 +4119,10 @@ bool SketchObject::deriveConstraintsForPieces(const int oldId,
return true;
}
if (conId == GeoEnum::GeoUndef) {
// nothing further to do
return false;
}
Base::Vector3d conPoint(getPoint(conId, conPos));
double conParam;
auto* geoAsCurve = static_cast<const Part::GeomCurve*>(geo);