From: mpv Date: Wed, 1 Apr 2020 11:26:57 +0000 (+0300) Subject: Fix for the issue #3198 : No Mesh notification although the shape has changed. Make... X-Git-Tag: V9_5_0a2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7ca2062d0cd155d0fbf359deba978dd99334b586;p=modules%2Fshaper.git Fix for the issue #3198 : No Mesh notification although the shape has changed. Make correct treatment of the whole results selection while publish into the SHAPERSTUDY. --- 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())