From 58a69c1f99f147a75fb300d729fb421a0804fc3a Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 20 Mar 2020 16:04:09 +0300 Subject: [PATCH] Fix for the issue 18884 : result still published in SHAPER_STUDY after being removed --- src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.39.2