mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
editMeshOrSubMesh method fixed for correct work with sub-meshes
This commit is contained in:
parent
cb1e086726
commit
bd82c5b373
@ -945,13 +945,13 @@ bool SMESHGUI_MeshOp::editMeshOrSubMesh( QString& theMess )
|
|||||||
// assign new hypotheses
|
// assign new hypotheses
|
||||||
if ( aNewHypIndex != -1 )
|
if ( aNewHypIndex != -1 )
|
||||||
{
|
{
|
||||||
if ( myIsMesh )
|
SMESH::SMESH_Mesh_var aMeshVar =
|
||||||
{
|
|
||||||
SMESH::SMESH_Mesh_var aVar =
|
|
||||||
SMESH::SMESH_Mesh::_narrow( _CAST(SObject,pObj)->GetObject() );
|
SMESH::SMESH_Mesh::_narrow( _CAST(SObject,pObj)->GetObject() );
|
||||||
if ( !aVar->_is_nil() )
|
bool isMesh = !aMeshVar->_is_nil();
|
||||||
|
if ( isMesh )
|
||||||
|
{
|
||||||
SMESH::AddHypothesisOnMesh(
|
SMESH::AddHypothesisOnMesh(
|
||||||
aVar, myExistingHyps[ dim ][ hypType ][ aNewHypIndex ] );
|
aMeshVar, myExistingHyps[ dim ][ hypType ][ aNewHypIndex ] );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user