Add parameter to suppress touching a document when a view provider has been modified

This commit is contained in:
wmayer
2019-08-24 15:54:41 +02:00
parent fd90936b5d
commit 5af586b92e
3 changed files with 10 additions and 5 deletions

View File

@@ -182,8 +182,8 @@ void ViewProviderDocumentObject::onChanged(const App::Property* prop)
getObject()->Visibility.setValue(Visibility.getValue());
}
if (pcDocument && !pcDocument->isModified()) {
if(prop)
if (pcDocument && !pcDocument->isModified() && testStatus(Gui::ViewStatus::TouchDocument)) {
if (prop)
FC_LOG(prop->getFullName() << " changed");
pcDocument->setModified(true);
}