From: mpv Date: Fri, 20 Mar 2020 13:04:09 +0000 (+0300) Subject: Fix for the issue 18884 : result still published in SHAPER_STUDY after being removed X-Git-Tag: V9_5_0a2~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=58a69c1f99f147a75fb300d729fb421a0804fc3a;p=modules%2Fshaper.git Fix for the issue 18884 : result still published in SHAPER_STUDY after being removed --- diff --git a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py index a6a6d2d66..d67fbb779 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -136,6 +136,9 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): if aRes: aBuilder = SHAPERSTUDY_utils.getStudy().NewBuilder() aBuilder.RemoveReference(aSO2) + # 18884 - remove also the shape object and all sub-objects + aBuilder = SHAPERSTUDY_utils.getStudy().NewBuilder() + aBuilder.RemoveObjectWithChildren(aSO) # Part of the "execute" method: processes the Groups of theRes result publication. # If theFields is true, the same is performed for Fields.