Duplicate Selection: Add duplicated features to active Body

This commit is contained in:
jrheinlaender
2013-05-16 14:46:33 +04:30
committed by Stefan Tröger
parent 4524103dbc
commit 54a1707da7
4 changed files with 111 additions and 0 deletions

View File

@@ -196,6 +196,13 @@ const bool Body::isAllowed(const App::DocumentObject* f)
void Body::addFeature(App::DocumentObject *feature)
{
/*
// Remove this test if Workbench::slotNewObject() has been tested sufficiently in respect to Undo() and
// the addFeature() calls have been removed in Command.cpp
if (hasFeature(feature))
return;
*/
// Set the BaseFeature property
if (feature->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId())) {
App::DocumentObject* prevSolidFeature = getPrevSolidFeature(NULL, true);