Skip to content

Commit

Permalink
fixes #3302: PDN cloned object have duplicated 'Unnamed' ghost on eve…
Browse files Browse the repository at this point in the history
…ry file reopen
  • Loading branch information
wwmayer committed Jan 30, 2018
1 parent 865593b commit 70399e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/PartDesign/App/Body.cpp
Expand Up @@ -442,7 +442,8 @@ void Body::onSettingDocument() {
}

void Body::onChanged (const App::Property* prop) {
if (!this->getDocument()->isPerformingTransaction()) {
// we neither load a project nor perform undo/redo
if (!this->isRestoring() && !this->getDocument()->isPerformingTransaction()) {
if ( prop == &BaseFeature ) {
FeatureBase* bf = nullptr;
auto first = Group.getValues().empty() ? nullptr : Group.getValues().front();
Expand Down

0 comments on commit 70399e6

Please sign in to comment.