PartDesign: NewSketch: fix crash when no body
This commit is contained in:
committed by
Kacper Donat
parent
701b98ee37
commit
f2643925b6
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user