mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-13 17:18:35 +05:00
Editing hypothesis bug...
This commit is contained in:
parent
53d936f2cd
commit
96777f9e35
@ -1071,9 +1071,11 @@ void SMESHGUI_MeshOp::createHypothesis (const int theDim,
|
|||||||
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Geom );
|
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Geom );
|
||||||
if ( anObjEntry == "" ) {
|
if ( anObjEntry == "" ) {
|
||||||
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Obj );
|
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Obj );
|
||||||
_PTR(SObject) pObj = studyDS()->FindObjectID( anObjEntry.toLatin1().data() );
|
if ( anObjEntry != "" ) {
|
||||||
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( pObj );
|
_PTR(SObject) pObj = studyDS()->FindObjectID( anObjEntry.toLatin1().data() );
|
||||||
anObjEntry = ( aGeomVar->_is_nil() ) ? "" : anObjEntry = aGeomVar->GetStudyEntry();
|
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( pObj );
|
||||||
|
anObjEntry = ( aGeomVar->_is_nil() ) ? "" : anObjEntry = aGeomVar->GetStudyEntry();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
aCreator->setShapeEntry( anObjEntry );
|
aCreator->setShapeEntry( anObjEntry );
|
||||||
@ -1137,9 +1139,11 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex )
|
|||||||
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Geom );
|
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Geom );
|
||||||
if ( anObjEntry == "" ) {
|
if ( anObjEntry == "" ) {
|
||||||
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Obj );
|
anObjEntry = myDlg->selectedObject( SMESHGUI_MeshDlg::Obj );
|
||||||
_PTR(SObject) pObj = studyDS()->FindObjectID( anObjEntry.toLatin1().data() );
|
if ( anObjEntry != "" ) {
|
||||||
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( pObj );
|
_PTR(SObject) pObj = studyDS()->FindObjectID( anObjEntry.toLatin1().data() );
|
||||||
anObjEntry = aGeomVar->GetStudyEntry();
|
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( pObj );
|
||||||
|
anObjEntry = aGeomVar->GetStudyEntry();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
aCreator->setShapeEntry( anObjEntry );
|
aCreator->setShapeEntry( anObjEntry );
|
||||||
|
Loading…
Reference in New Issue
Block a user