PartDesign: NewSketch: fix crash when no body

This commit is contained in:
PaddleStroke
2025-09-11 15:15:23 +02:00
committed by Kacper Donat
parent a4b659fcbf
commit d5929bcdbf

View File

@@ -504,7 +504,6 @@ public:
SketchRequestSelection(Gui::Document* guidocument, PartDesign::Body* activeBody)
: guidocument(guidocument)
, activeBody(activeBody)
, planeFinder(guidocument->getDocument(), activeBody)
{
}
@@ -619,6 +618,7 @@ private:
void findAndSelectPlane()
{
App::Document* appdocument = guidocument->getDocument();
PlaneFinder planeFinder {appdocument, activeBody};
planeFinder.findBasePlanes();
planeFinder.findDatumPlanes();
@@ -754,8 +754,6 @@ private:
private:
Gui::Document* guidocument;
PartDesign::Body* activeBody;
PlaneFinder planeFinder;
};
}