From 86db4c3215329f052a7bcdee56ea088b16a3cefc Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Tue, 21 Jul 2015 05:04:21 +0300 Subject: [PATCH] PartDesign/Gui: enable sketches on datum planes inside bodies --- src/Mod/PartDesign/Gui/Command.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 6d9b8fc97..4c0d76e20 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -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;