]> OCCT Git - occt.git/commitdiff
0032174: Data Exchange - read.step.root.transformation parameter has reversed definition
authorkgv <kgv@opencascade.com>
Thu, 25 Feb 2021 19:44:31 +0000 (22:44 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 2 Apr 2021 17:01:33 +0000 (20:01 +0300)
Parameter definition has been corrected to match other Boolean parameters to map 0=OFF and 1=ON.

src/STEPControl/STEPControl_ActorRead.cxx
src/STEPControl/STEPControl_Controller.cxx

index 0fb9a2eb7a2abe0df61a2b8560cfbbf85b1b7af5..deddf5457136d447d16bc3634bd3e8c2ec6f010e 100644 (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);
 }
 
index 2bdd45e2b8e350b3220b62c3ddc49053a121abfa..1e611de35fffdcae70966bf66fa764731317ce3b 100644 (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