mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 11:00:32 +05:00
Set mesh name at mesh creation: mesh = smesh.Mesh( geo, NAME )
This commit is contained in:
parent
9fabf4875d
commit
ee8a2759a5
@ -1013,6 +1013,11 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
|
||||
{
|
||||
Handle(_pyMesh) mesh = new _pyMesh( theCommand );
|
||||
AddObject( mesh );
|
||||
// set mesh name
|
||||
_pyID id = mesh->GetID(), comma("'");
|
||||
if ( myObjectNames.IsBound( id ))
|
||||
theCommand->SetArg( theCommand->GetNbArgs() + 1,
|
||||
comma + myObjectNames( id ) + comma);
|
||||
return;
|
||||
}
|
||||
if ( method == "CreateMeshesFromUNV" ||
|
||||
|
Loading…
Reference in New Issue
Block a user