improve whitespaces

This commit is contained in:
wmayer
2017-07-26 23:08:44 +02:00
parent ff4d613acb
commit 4469964dc4
2 changed files with 9 additions and 9 deletions

View File

@@ -342,9 +342,9 @@ private:
Handle(XCAFApp_Application) hApp = XCAFApp_Application::GetApplication();
Handle(TDocStd_Document) hDoc;
bool optionReadShapeCompoundMode_status;
bool optionReadShapeCompoundMode_status;
hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc);
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP");
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP");
optionReadShapeCompoundMode_status = hGrp->GetBool("ReadShapeCompoundMode",false);
if (file.hasExtension("stp") || file.hasExtension("step")) {
@@ -419,8 +419,8 @@ private:
// purge the document before recomputing it to clear it and settle it in the proper
// way. This is drastically improving STEP rendering time on complex STEP files.
pcDoc->recompute();
if (file.hasExtension("stp") || file.hasExtension("step"))
ocaf.setMerge(optionReadShapeCompoundMode_status);
if (file.hasExtension("stp") || file.hasExtension("step"))
ocaf.setMerge(optionReadShapeCompoundMode_status);
ocaf.loadShapes();
pcDoc->purgeTouched();
pcDoc->recompute();
@@ -523,10 +523,10 @@ private:
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);
if ( optionScheme_214 )
Interface_Static::SetCVal("write.step.schema", "AP214CD");
if ( optionScheme_203 )
Interface_Static::SetCVal("write.step.schema", "AP203");
if (optionScheme_214)
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);