]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2164 : publish field-steps in the SALOME GEOM data tree.
authormpv <mpv@opencascade.com>
Tue, 16 May 2017 14:04:14 +0000 (17:04 +0300)
committermpv <mpv@opencascade.com>
Tue, 16 May 2017 14:04:14 +0000 (17:04 +0300)
src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py

index 6427951a11fbc65975ce27473272367101a31067..7902a8dddcc86b6895a943d8d2c79abc3e0e4013 100644 (file)
@@ -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):