mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
#16526 EDF 18698 - Problem when loading a dumped script
take into account an argument added to Concatenate()
This commit is contained in:
parent
6d32f944a0
commit
a30f2699f0
@ -1098,9 +1098,21 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
|
||||
// Concatenate( [mesh1, ...], ... )
|
||||
else if ( method == "Concatenate" || method == "ConcatenateWithGroups")
|
||||
{
|
||||
// OLD IDL: ( meshes, uniteGroups, toMerge, tol )
|
||||
// IDL: ( meshes, uniteGroups, toMerge, tol, meshToAppendTo )
|
||||
// PY: ( meshes, uniteGroups, toMerge, tol, allGroups=False, name="", meshToAppendTo=None )
|
||||
_pyID appendMesh = theCommand->GetArg( 5 );
|
||||
if ( method == "ConcatenateWithGroups" ) {
|
||||
theCommand->SetMethod( "Concatenate" );
|
||||
theCommand->SetArg( theCommand->GetNbArgs() + 1, "True" );
|
||||
theCommand->SetArg( 5, "True" );
|
||||
}
|
||||
else {
|
||||
theCommand->SetArg( 5, "False" );
|
||||
}
|
||||
if ( !appendMesh.IsEmpty() && appendMesh != "None" )
|
||||
{
|
||||
appendMesh.Insert( 1, "meshToAppendTo=" );
|
||||
theCommand->SetArg( theCommand->GetNbArgs() + 1, appendMesh );
|
||||
}
|
||||
Handle(_pyMesh) mesh = new _pyMesh( theCommand, theCommand->GetResultValue() );
|
||||
AddObject( mesh );
|
||||
|
Loading…
Reference in New Issue
Block a user