From 12f7307fc2ca7d9a20b316b834cd9c90b2d2ff48 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 23 Jun 2020 19:28:31 +0300 Subject: [PATCH] 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. --- 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 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 = {} -- 2.39.2