mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 02:40:35 +05:00
fix failure of non-regression test SMESH_TEST/Grids/smesh/imps6/G0
in getSubmeshIDForCopiedMesh(), fix invalid index (subIndex==0) for OCCT map in case if srcMeshDS->GetPersistentId() == 0
This commit is contained in:
parent
e453ca2b46
commit
7d9f9fd31f
@ -521,7 +521,7 @@ namespace // INTERNAL STUFF
|
||||
TopExp::MapShapes( SMESH_Mesh::PseudoShape(), pseudoSubShapes );
|
||||
|
||||
// index of pseudoSubShapes corresponding to srcMeshDS
|
||||
int subIndex = srcMeshDS->GetPersistentId() % pseudoSubShapes.Extent();
|
||||
int subIndex = 1 + srcMeshDS->GetPersistentId() % pseudoSubShapes.Extent();
|
||||
int nbSubShapes = 1 + srcMeshDS->GetPersistentId() / pseudoSubShapes.Extent();
|
||||
|
||||
// try to find already present shapeForSrcMesh
|
||||
|
Loading…
Reference in New Issue
Block a user