From: mpv Date: Tue, 16 May 2017 14:04:14 +0000 (+0300) Subject: Fix for the issue #2164 : publish field-steps in the SALOME GEOM data tree. X-Git-Tag: V_2.7.1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35c0eda67b7ebe754e67f20c1c77495dfd39c5be;p=modules%2Fshaper.git Fix for the issue #2164 : publish field-steps in the SALOME GEOM data tree. --- diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index 6427951a1..7902a8ddd 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -262,7 +262,9 @@ class ExportFeature(ModelAPI.ModelAPI_Feature): elif aTables.type() == 2: # double aVal = float(aVal) aValues.append(aVal) - aResField.addStep(aStepIndex + 1, aStamp, aValues) + aStep = aResField.addStep(aStepIndex + 1, aStamp, aValues) + if aStep: + self.geompy.addToStudyInFather( aResField, aStep, aStep.GetName() ) ## Exports all shapes and groups into the GEOM module. def execute(self):