PartDesign/Gui: enable sketches on datum planes inside bodies

This commit is contained in:
Alexander Golubev 2015-07-21 05:04:21 +03:00 committed by Stefan Tröger
parent e586f55fb2
commit 86db4c3215

View File

@ -746,7 +746,9 @@ void CmdPartDesignNewSketch::activated(int iMsg)
QObject::tr("You have to select a face or plane from the active body!"));
return;
}
} else if (pcActiveBody->getNextSolidFeature() != obj) {
} else if (!obj->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId())
&& pcActiveBody->getNextSolidFeature() != obj) {
// TOOD: checkme why it's forbidden!?
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Selection from inactive feature"),
QObject::tr("You can only use the last solid feature as sketch support"));
return;