From 35c0eda67b7ebe754e67f20c1c77495dfd39c5be Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 16 May 2017 17:04:14 +0300 Subject: [PATCH] Fix for the issue #2164 : publish field-steps in the SALOME GEOM data tree. --- src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.39.2