mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 06:40:32 +05:00
restore scale factor removed by mistake
This commit is contained in:
parent
e97db243cc
commit
380f740205
@ -934,13 +934,16 @@ bool _pyNumberOfSegmentsHyp::Addition2Creation( const Handle(_pyCommand)& theCmd
|
|||||||
const _pyID& theMesh)
|
const _pyID& theMesh)
|
||||||
{
|
{
|
||||||
if ( IsWrappable( theMesh ) && myArgs.Length() > 1 ) {
|
if ( IsWrappable( theMesh ) && myArgs.Length() > 1 ) {
|
||||||
// scale factor (2-nd arg) is provided: clear SetDistrType(1)
|
// scale factor (2-nd arg) is provided: clear SetDistrType(1) command
|
||||||
list<Handle(_pyCommand)>::iterator cmd = myUnknownCommands.begin();
|
bool scaleDistrType = false;
|
||||||
for ( ; cmd != myUnknownCommands.end(); ++cmd ) {
|
list<Handle(_pyCommand)>::reverse_iterator cmd = myUnknownCommands.rbegin();
|
||||||
|
for ( ; cmd != myUnknownCommands.rend(); ++cmd ) {
|
||||||
if ( (*cmd)->GetMethod() == "SetDistrType" ) {
|
if ( (*cmd)->GetMethod() == "SetDistrType" ) {
|
||||||
if ( (*cmd)->GetArg( 1 ) == "1" )
|
if ( (*cmd)->GetArg( 1 ) == "1" ) {
|
||||||
|
scaleDistrType = true;
|
||||||
(*cmd)->Clear();
|
(*cmd)->Clear();
|
||||||
else {
|
}
|
||||||
|
else if ( !scaleDistrType ) {
|
||||||
// distribution type changed: remove scale factor from args
|
// distribution type changed: remove scale factor from args
|
||||||
myArgs.Remove( 2, myArgs.Length() );
|
myArgs.Remove( 2, myArgs.Length() );
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user