[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 b6a069dc63
commit 2779f0b29f

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