From 85dba6fca49e2c7b3797e6fdc2c4adf6cd597c57 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 22 Jun 2016 14:31:08 +0300 Subject: [PATCH] Fix for #1587 : in second study sometimes "salome" package study is not initialized, but called by Export to GEOM method --- src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index 1e8f81488..a67c73633 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -163,6 +163,7 @@ class ExportFeature(ModelAPI.ModelAPI_Feature): ## List of objects created in the old geom for later use self.geomObjects = [] ## geomBuilder tool + salome.salome_init(0,1) self.geompy = geomBuilder.New(salome.myStudy) # Export bodies and groups -- 2.39.2