From 70399e6c9c6506a6eb7849c6835557b40adb1db0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 30 Jan 2018 19:26:06 +0100 Subject: [PATCH] fixes #0003302: PDN cloned object have duplicated 'Unnamed' ghost on every file reopen --- src/Mod/PartDesign/App/Body.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/Body.cpp b/src/Mod/PartDesign/App/Body.cpp index f88110e78aa2..e7c3878fe679 100644 --- a/src/Mod/PartDesign/App/Body.cpp +++ b/src/Mod/PartDesign/App/Body.cpp @@ -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();