PartDesign/Gui: enable sketches on datum planes inside bodies
This commit is contained in:
parent
e586f55fb2
commit
86db4c3215
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user