mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 12:10:33 +05:00
fix bug with algorithm and his hypothesis in case of new created study (not imported from python script)
This commit is contained in:
parent
95e7e98096
commit
9fa65460e9
@ -1368,6 +1368,8 @@ bool _pyHypothesis::Addition2Creation( const Handle(_pyCommand)& theCmd,
|
|||||||
algo = theGen->FindAlgo( myGeom, theMesh, this );
|
algo = theGen->FindAlgo( myGeom, theMesh, this );
|
||||||
if ( algo.IsNull() )
|
if ( algo.IsNull() )
|
||||||
return false;
|
return false;
|
||||||
|
// attach hypothesis creation command to be after algo creation command
|
||||||
|
// because it can be new created instance of algorithm
|
||||||
algo->GetCreationCmd()->AddDependantCmd( theCmd );
|
algo->GetCreationCmd()->AddDependantCmd( theCmd );
|
||||||
}
|
}
|
||||||
myIsWrapped = true;
|
myIsWrapped = true;
|
||||||
@ -1386,9 +1388,9 @@ bool _pyHypothesis::Addition2Creation( const Handle(_pyCommand)& theCmd,
|
|||||||
}
|
}
|
||||||
// set a new creation command
|
// set a new creation command
|
||||||
GetCreationCmd()->Clear();
|
GetCreationCmd()->Clear();
|
||||||
// set dependance between creation and addition to mesh
|
// replace creation command by wrapped instance
|
||||||
// SetCreationCmd( theCmd );
|
// please note, that hypothesis attaches to algo creation command (see upper)
|
||||||
GetCreationCmd()->AddDependantCmd( theCmd );
|
SetCreationCmd( theCmd );
|
||||||
|
|
||||||
|
|
||||||
// clear commands setting arg values
|
// clear commands setting arg values
|
||||||
|
Loading…
Reference in New Issue
Block a user