mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 08:50:36 +05:00
bos #29332 [CEA 26899] GroupOnGeom returns None
Make return an empty compound for an empty group where list == [-1]
This commit is contained in:
parent
ac075ee14b
commit
e3980c1c79
@ -255,9 +255,10 @@ TopoDS_Shape GEOM_Client::GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_p
|
||||
}
|
||||
|
||||
/* Case of only one subshape, excluding groups of one main shape */
|
||||
if ( list->length() == 1 && !(aShape->GetType() == 37 && list[0] == 1) ) {
|
||||
if (list[0] > 0)
|
||||
S = subShapes[list[0]-1];
|
||||
if ( list->length() == 1 &&
|
||||
!(aShape->GetType() == 37 && list[0] == 1) &&
|
||||
list[0] > 0 ) {
|
||||
S = subShapes[list[0]-1];
|
||||
}
|
||||
else {
|
||||
BRep_Builder B;
|
||||
|
Loading…
Reference in New Issue
Block a user