X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConnectorPlugin%2FConnectorPlugin_PublishToStudyFeature.py;fp=src%2FConnectorPlugin%2FConnectorPlugin_PublishToStudyFeature.py;h=07aa2200555e2b17ed9137873cc9deac9722bfe6;hb=7ca2062d0cd155d0fbf359deba978dd99334b586;hp=a6a6d2d6619152e66c4a7d9f5da0639f2be6951a;hpb=66b4eb75d38ea84c7a236d314184c29df5aa692b;p=modules%2Fshaper.git diff --git a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py index a6a6d2d66..07aa22005 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -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())