From 54d766ea04cc92d503e9eb9697cac8f51d5de8fe Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 10 Aug 2011 12:49:49 +0000 Subject: [PATCH] 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported Fix ExportCGNS() --- src/SMESH_SWIG/smeshDC.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 5dba9897f..c63c2b825 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1760,6 +1760,8 @@ class Mesh: def ExportCGNS(self, f, overwrite=1, meshPart=None): if isinstance( meshPart, list ): meshPart = self.GetIDSource( meshPart, SMESH.ALL ) + if isinstance( meshPart, Mesh ): + meshPart = meshPart.mesh elif not meshPart: meshPart = self.mesh self.mesh.ExportCGNS(meshPart, f, overwrite) -- 2.39.2