]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
fixed problem where 'Publish to GEOM' was not working jfa/BuildingIs
authormbs <martin.bernhard@opencascade.com>
Thu, 20 Jul 2023 13:24:26 +0000 (14:24 +0100)
committermbs <martin.bernhard@opencascade.com>
Thu, 20 Jul 2023 13:24:26 +0000 (14:24 +0100)
products/patches/sbim_smodule-publish.patch [new file with mode: 0644]
products/sbim_smodule.pyconf

diff --git a/products/patches/sbim_smodule-publish.patch b/products/patches/sbim_smodule-publish.patch
new file mode 100644 (file)
index 0000000..6748853
--- /dev/null
@@ -0,0 +1,77 @@
+diff -ruN sbim_smodule-ORIG/doc/conf.py.in sbim_smodule/doc/conf.py.in
+--- sbim_smodule-ORIG/doc/conf.py.in   2023-02-16 09:43:48.000000000 +0000
++++ sbim_smodule/doc/conf.py.in        2023-07-20 11:23:41.343405103 +0100
+@@ -26,7 +26,7 @@
+ # Project's author(s).
+ author = u'OPEN CASCADE'
+ # Project's copyright notice.
+-copyright = u'2013-2018 %s' % author
++copyright = u'2013-2023 %s' % author
+ # The version info for the project you're documenting, acts as replacement for
+ # |version| and |release|, also used in various other places throughout the
+diff -ruN sbim_smodule-ORIG/src/BuildingIS/BuildingIS.cxx sbim_smodule/src/BuildingIS/BuildingIS.cxx
+--- sbim_smodule-ORIG/src/BuildingIS/BuildingIS.cxx    2023-07-20 12:50:27.511511021 +0100
++++ sbim_smodule/src/BuildingIS/BuildingIS.cxx 2023-07-20 12:55:35.399517285 +0100
+@@ -1,4 +1,4 @@
+-// Copyright (C) 2013-2018  OPEN CASCADE
++// Copyright (C) 2013-2023  OPEN CASCADE
+ //
+ // This library is free software; you can redistribute it and/or
+ // modify it under the terms of the GNU Lesser General Public
+@@ -29,48 +29,21 @@
+ #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
+ #include CORBA_CLIENT_HEADER(GEOM_Gen)
+-#include <SALOME_LifeCycleCORBA.hxx>
+-#include <SALOME_NamingService.hxx>
+ #include <Utils_ExceptHandlers.hxx>
+-#include <Utils_ORB_INIT.hxx>
+-#include <Utils_SINGLETON.hxx>
+-
+ #include <SALOME_KernelServices.hxx> 
+ namespace
+ {
+-    CORBA::ORB_var orb()
+-    {
+-        static CORBA::ORB_var _orb;
+-      if (CORBA::is_nil(_orb))
+-      {
+-          ORB_INIT& init = *SINGLETON_<ORB_INIT>::Instance();
+-          _orb = init();
+-      }
+-        return _orb;
+-    }
+-
+-    SALOME_NamingService* namingService()
+-    {
+-        static SALOME_NamingService _ns(orb());
+-      return &_ns;
+-    }
+-
+-    SALOME_LifeCycleCORBA* lcc()
+-    {
+-        static SALOME_LifeCycleCORBA _lcc(namingService());
+-      return &_lcc;
+-    }
+-
+     GEOM::GEOM_Gen_var geomEngine()
+     {
+         static GEOM::GEOM_Gen_var _geomEngine;
+-      if (CORBA::is_nil(_geomEngine))
+-      {
+-          Engines::EngineComponent_var cmp = lcc()->FindOrLoad_Component("FactoryServer", "GEOM");
+-          _geomEngine = GEOM::GEOM_Gen::_narrow(cmp);
+-      }
+-      return _geomEngine;
++        if (CORBA::is_nil(_geomEngine))
++        {
++            Engines::EngineComponent_var comp = KERNEL::getLifeCycleCORBA()->FindOrLoad_Component( "FactoryServer", "GEOM" );
++            _geomEngine = GEOM::GEOM_Gen::_narrow( comp );
++
++        }
++        return _geomEngine;
+     }
index 73c5ccba8734c3e82e598fee5db6c601fbd884c4..386baa13f2c09ebd4ad4dc36d8abc067f537d6f4 100644 (file)
@@ -28,4 +28,5 @@ default :
       has_salome_gui : "yes"
       is_SALOME_module : "yes"
     }
+    patches : ['sbim_smodule.patch', 'sbim_smodule-publish.patch']
 }