]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue 18884 : result still published in SHAPER_STUDY after being removed
authormpv <mikhail.ponikarov@opencascade.com>
Fri, 20 Mar 2020 13:04:09 +0000 (16:04 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Fri, 20 Mar 2020 13:04:09 +0000 (16:04 +0300)
src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py

index a6a6d2d6619152e66c4a7d9f5da0639f2be6951a..d67fbb779981cc4c8fdb198b5ee622b674f4e0c2 100644 (file)
@@ -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.