mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020978: EDF 1475 SMESH: Convert linear to quadratic on a submesh
fix a bug found by Renaud (note 0010641)
This commit is contained in:
parent
c09e9f7015
commit
9e3ba593d5
@ -234,20 +234,21 @@ bool SMESHGUI_ConvToQuadOp::onApply()
|
||||
{
|
||||
SMESH::SMESH_MeshEditor_var aEditor = mesh->GetMeshEditor();
|
||||
aResult = true;
|
||||
SMESH::SMESH_Mesh_var sourceMesh = SMESH::SObjectToInterface<SMESH::SMESH_Mesh>( pObj );
|
||||
if( !myDlg->CurrentRB() )
|
||||
{
|
||||
bool aParam = true;
|
||||
if( myDlg->IsEnabledCheck() )
|
||||
aParam = myDlg->IsMediumNdsOnGeom();
|
||||
|
||||
if ( myDlg->isWarningShown() )
|
||||
if ( sourceMesh->_is_nil() )
|
||||
aEditor->ConvertToQuadraticObject( aParam, idSource );
|
||||
else
|
||||
aEditor->ConvertToQuadratic( aParam );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( myDlg->isWarningShown() )
|
||||
if ( sourceMesh->_is_nil() )
|
||||
aEditor->ConvertFromQuadraticObject( idSource );
|
||||
else
|
||||
aEditor->ConvertFromQuadratic();
|
||||
|
Loading…
Reference in New Issue
Block a user