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-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5381c440465bdf694504c54c99fe6e11f29a9115;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 = {}