From: mpv Date: Wed, 22 Jun 2016 11:31:08 +0000 (+0300) Subject: Fix for #1587 : in second study sometimes "salome" package study is not initialized... X-Git-Tag: V_2.4.0~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=85dba6fca49e2c7b3797e6fdc2c4adf6cd597c57;p=modules%2Fshaper.git Fix for #1587 : in second study sometimes "salome" package study is not initialized, but called by Export to GEOM method --- 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