Final fix for hierarchical STEP exporter

This commit is contained in:
Jean-Marie Verdun
2017-07-09 22:55:38 +02:00
committed by Yorik van Havre
parent 1b36dc2437
commit 8ab063aaa5
3 changed files with 3 additions and 18 deletions

View File

@@ -490,6 +490,7 @@ private:
hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc);
bool keepExplicitPlacement = list.size() > 1;
keepExplicitPlacement = Standard_True;
Import::ExportOCAF ocaf(hDoc, keepExplicitPlacement);
// That stuff is exporting a list of selected oject into FreeCAD Tree
@@ -502,7 +503,6 @@ private:
std::vector <TDF_Label> hierarchical_label;
std::vector <TopLoc_Location> hierarchical_loc;
label=export_app_object(obj,ocaf,label, hierarchical_label, hierarchical_loc);
ocaf.ComputeDoc(label);
}
}