0004441: Changing Placement of a App::Part that contains a Part::FeaturePython causes drawing of a ghost object at original Placement [skip ci]

This commit is contained in:
wmayer
2020-09-24 17:39:17 +02:00
parent 142a398c94
commit c98ef02fe2

View File

@@ -504,8 +504,7 @@ protected:
ViewProviderT::setOverrideMode(viewerMode);
}
if (!this->testStatus(Gui::isRestoring) &&
ViewProviderT::canAddToSceneGraph() &&
imp->canAddToSceneGraph() == ViewProviderPythonFeatureImp::NotImplemented) {
!canAddToSceneGraph()) {
this->getDocument()->toggleInSceneGraph(this);
}
ViewProviderT::updateView();