FreeCAD: master 6562946e

Author Committer Branch Timestamp Parent
realthunder wwmayer master 2019-12-18 04:14:32 master 36d158ac
Changeset Gui: fix ViewProviderDocumentObject display mode restore

C++ view provider will get the call of attach() before restoring
properties. However, python view object will delay the call until Proxy
is restored.

The reason why this problem did not show up eariler is because
ViewProviderPythonFeature::getDefaultDisplayMode() did not fallback to
its parent implementation if there is no Python override. This can be
considered as a bug, which is fixed during the merge. And the display
mode restore problem is the side effect of the fix.
mod - src/Gui/ViewProviderDocumentObject.cpp Diff File