make multisection work

This commit is contained in:
Stefan Tröger
2015-05-31 18:29:59 +02:00
parent 7fc0111944
commit ad352e9b33
3 changed files with 117 additions and 3 deletions

View File

@@ -473,6 +473,9 @@ void TaskDatumParameters::onButtonRef(const bool pressed, const int idx)
{
// Note: Even if there is no solid, App::Plane and Part::Datum can still be selected
PartDesign::Body* activeBody = Gui::Application::Instance->activeView()->getActiveObject<PartDesign::Body*>(PDBODYKEY);
if(!activeBody)
throw Base::Exception("No active body");
App::DocumentObject* solid = activeBody->getPrevSolidFeature();
if (pressed) {