]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #3198 : No Mesh notification although the shape has changed. Make...
authormpv <mikhail.ponikarov@opencascade.com>
Wed, 1 Apr 2020 11:26:57 +0000 (14:26 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Wed, 1 Apr 2020 11:26:57 +0000 (14:26 +0300)
src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py

index a6a6d2d6619152e66c4a7d9f5da0639f2be6951a..07aa2200555e2b17ed9137873cc9deac9722bfe6 100644 (file)
@@ -160,7 +160,7 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature):
             aShape = aSelection.value()
             if aShape:
               allShapesList = [] # collect all sub-shapes selected in the group
-              if aShape.shapeType() == 0: # compound
+              if aShape.shapeType() == 0 or aShape.shapeType() != aSelType: # compound or whole res
                 anExplorer = GeomAPI_ShapeExplorer(aShape, aSelType)
                 while anExplorer.more():
                   allShapesList.append(anExplorer.current())