From 7ca2062d0cd155d0fbf359deba978dd99334b586 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 1 Apr 2020 14:26:57 +0300 Subject: [PATCH] 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. --- src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.39.2