From 3c7ae4f3e307a6f314726c7c5785476dda55ccf6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 24 Sep 2020 17:39:17 +0200 Subject: [PATCH] 0004441: Changing Placement of a App::Part that contains a Part::FeaturePython causes drawing of a ghost object at original Placement [skip ci] --- src/Gui/ViewProviderPythonFeature.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/ViewProviderPythonFeature.h b/src/Gui/ViewProviderPythonFeature.h index 3605f791796a..eba3b6179b53 100644 --- a/src/Gui/ViewProviderPythonFeature.h +++ b/src/Gui/ViewProviderPythonFeature.h @@ -504,8 +504,7 @@ class ViewProviderPythonFeatureT : public ViewProviderT ViewProviderT::setOverrideMode(viewerMode); } if (!this->testStatus(Gui::isRestoring) && - ViewProviderT::canAddToSceneGraph() && - imp->canAddToSceneGraph() == ViewProviderPythonFeatureImp::NotImplemented) { + !canAddToSceneGraph()) { this->getDocument()->toggleInSceneGraph(this); } ViewProviderT::updateView();