From: mpv Date: Fri, 17 Apr 2015 11:56:43 +0000 (+0300) Subject: Fix for issue #404 X-Git-Tag: V_1.1.0~13^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b99bead3b386a89ac2467d61933e27d3c47ca97b;hp=-c;p=modules%2Fshaper.git Fix for issue #404 --- b99bead3b386a89ac2467d61933e27d3c47ca97b diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index 26ab3ca9f..924130843 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -84,9 +84,11 @@ class ExportFeature(ModelAPI.ModelAPI_Feature): for anIndex in range(0, aFeaturesNum): aFeature = self.Part.object("Features", anIndex) aSelectionList = aFeature.data().selectionList("group_list") - aName = aFeature.data().name() # if a group has been found if aSelectionList: + aFeature = ModelAPI.objectToFeature(aFeature) + if aFeature.firstResult() is not None: + aName = aFeature.firstResult().data().name() groupIndex = groupIndex + 1 self.createGroupFromList(aSelectionList, aName)