fixes #0003302: PDN cloned object have duplicated 'Unnamed' ghost on every file reopen

This commit is contained in:
wmayer
2018-01-30 19:26:06 +01:00
parent 28c2baefbf
commit 9d838dd8d2

View File

@@ -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();