part design: reimp feature to move datum objects using modal / dialogue box from right click menu in model tab
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
|
||||
|
||||
#include <App/Datums.h>
|
||||
#include <App/Document.h>
|
||||
#include <App/GeoFeatureGroupExtension.h>
|
||||
#include <App/Origin.h>
|
||||
@@ -219,7 +219,6 @@ void CmdPartDesignBody::activated(int iMsg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Add a Body"));
|
||||
|
||||
std::string bodyName = getUniqueObjectName("Body");
|
||||
@@ -1028,6 +1027,13 @@ void CmdPartDesignMoveFeatureInTree::activated(int iMsg)
|
||||
std::vector<App::DocumentObject*> features = getSelection().getObjectsOfType(
|
||||
Part::Feature::getClassTypeId()
|
||||
);
|
||||
|
||||
// also check and include datum objects, ie. plane, line, and point
|
||||
std::vector<App::DocumentObject*> datums = getSelection().getObjectsOfType(
|
||||
App::DatumElement::getClassTypeId()
|
||||
);
|
||||
features.insert(features.end(), datums.begin(), datums.end());
|
||||
|
||||
if (features.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user