From: mpv Date: Tue, 23 Jun 2020 16:28:31 +0000 (+0300) Subject: Fix for the issue #19721 Parts moved at partset level are not well published to SHAPE... X-Git-Tag: V9_5_0rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12f7307fc2ca7d9a20b316b834cd9c90b2d2ff48;p=modules%2Fshaper.git Fix for the issue #19721 Parts moved at partset level are not well published to SHAPERSTUDY. Use Id of the original part, not the translation/placement or other. --- diff --git a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py index a87eb0f6f..a2e401aae 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -85,7 +85,7 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): if aPartDoc is None and aPartObject is not None: EventsAPI.Events_InfoMessage("PublishToStudy", "To publish to SHAPER-STUDY, activate Parts in SHAPER", self).send() break - aPartFeatureId = aPartSet.feature(aPartRes).data().featureId() + aPartFeatureId = aPartSet.feature(aPartRes.original()).data().featureId() # Collects all features of exported results to find results of the same features and extend id. # Map from feature index to index of result. If index is zero (initial), no surrfix to entry is added. aFeaturesIndices = {}