Salome HOME
Fix for the issue #3198 : No Mesh notification although the shape has changed. Make...
[modules/shaper.git] / 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())