1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0032174: Data Exchange - read.step.root.transformation parameter has reversed definition

Parameter definition has been corrected to match other Boolean parameters to map 0=OFF and 1=ON.
This commit is contained in:
kgv 2021-02-25 22:44:31 +03:00 committed by bugmaster
parent d0b8f0108f
commit 51c21d1fe4
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ Handle(Transfer_Binder) STEPControl_ActorRead::Transfer
}
}
// [END] Get version of preprocessor (to detect I-Deas case) (ssv; 23.11.2010)
Standard_Boolean aTrsfUse = (Interface_Static::IVal("read.step.root.transformation") == 0);
Standard_Boolean aTrsfUse = (Interface_Static::IVal("read.step.root.transformation") == 1);
return TransferShape(start, TP, Standard_True, aTrsfUse, theProgress);
}

View File

@ -213,8 +213,8 @@ STEPControl_Controller::STEPControl_Controller ()
// Issues #29068 and #31491.
Interface_Static::Init("step", "read.step.root.transformation", 'e', "");
Interface_Static::Init("step", "read.step.root.transformation", '&', "enum 0");
Interface_Static::Init("step", "read.step.root.transformation", '&', "eval ON");
Interface_Static::Init("step", "read.step.root.transformation", '&', "eval OFF");
Interface_Static::Init("step", "read.step.root.transformation", '&', "eval ON");
Interface_Static::SetCVal("read.step.root.transformation", "ON");
// STEP file encoding for names translation