mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0
This commit is contained in:
parent
c8522ecee0
commit
2d81fbabd2
@ -2036,10 +2036,12 @@ Standard_Boolean GEOMImpl_IShapesOperations::IsSubShapeBelongsTo( Handle(GEOM_Ob
|
||||
if ( theObjectIndex > 0 ) {
|
||||
TopExp::MapShapes( shape, anIndices );
|
||||
shape = anIndices.FindKey(theObjectIndex);
|
||||
anIndices.Clear();
|
||||
}
|
||||
if ( theSubObjectIndex > 0 ) {
|
||||
TopExp::MapShapes( subShape, anIndices );
|
||||
subShape = anIndices.FindKey(theSubObjectIndex);
|
||||
anIndices.Clear();
|
||||
}
|
||||
|
||||
TopExp::MapShapes( shape, anIndices );
|
||||
|
Loading…
Reference in New Issue
Block a user