PD: [skip ci] when creating a datum object allow user to create a body if needed

This commit is contained in:
wmayer
2021-10-22 20:23:16 +02:00
parent 50be9655e8
commit c1910e644f

View File

@@ -107,7 +107,7 @@ void UnifiedDatumCommand(Gui::Command &cmd, Base::Type type, std::string name)
bEditSelected = true;
}
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(/*messageIfNot = */false);
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(/*messageIfNot = */true);
if (bEditSelected) {
std::string tmp = std::string("Edit ")+name;