From: barate Date: Wed, 20 Mar 2013 16:55:12 +0000 (+0000) Subject: Fix detection of GEOM groups for structural elements X-Git-Tag: V7_2_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e63bb2c6a90e107a69c9283b10dff7f9ce2834de;p=modules%2Fgeom.git Fix detection of GEOM groups for structural elements --- diff --git a/src/GEOM_PY/structelem/parts.py b/src/GEOM_PY/structelem/parts.py index 538724268..4530b830a 100644 --- a/src/GEOM_PY/structelem/parts.py +++ b/src/GEOM_PY/structelem/parts.py @@ -137,7 +137,7 @@ class StructuralElementPart: self.name = name self.geom = getGeompy(studyId) self.baseShapesSet = set() - self.isMainShape = groupGeomObj.IsMainShape() + self.isMainShape = (groupGeomObj.GetType() != 37) # See geompyDC.ShapeIdToType for type codes if not self.isMainShape: mainShape = self.geom.GetMainShape(groupGeomObj) listIDs = self.geom.GetObjectIDs(groupGeomObj)