Fix a stupid bug due to a bad copy/paste into the hierarchical STEP function

which was resetting the XCAF doc just before writing it, ending up to write empty files
This commit is contained in:
Jean-Marie Verdun
2017-07-25 21:04:08 -05:00
committed by Yorik van Havre
parent 2cd24b0196
commit 3a0c4dbfea

View File

@@ -520,7 +520,6 @@ private:
//Interface_Static::SetCVal("write.step.schema", "AP214IS");
bool optionScheme_214;
bool optionScheme_203;
hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc);
ParameterGrp::handle hGrp_stp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP");
optionScheme_214 = hGrp_stp->GetBool("Scheme_214",true);
optionScheme_203 = hGrp_stp->GetBool("Scheme_203",false);
@@ -528,7 +527,6 @@ private:
Interface_Static::SetCVal("write.step.schema", "AP214CD");
if ( optionScheme_203 )
Interface_Static::SetCVal("write.step.schema", "AP203");
STEPCAFControl_Writer writer;
writer.Transfer(hDoc, STEPControl_AsIs);