From f13416141f65df873f28a443ed221a12c26dec00 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 31 Aug 2014 17:32:10 -0300 Subject: [PATCH] Enabled brep files in the library --- PartsLibrary.FCMacro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PartsLibrary.FCMacro b/PartsLibrary.FCMacro index d3b6ee02..3febf086 100644 --- a/PartsLibrary.FCMacro +++ b/PartsLibrary.FCMacro @@ -78,7 +78,7 @@ class ExpDockWidget(QtGui.QDockWidget): # setting up a directory model that shows only fcstd and step self.dirmodel = ExpFileSystemModel() self.dirmodel.setRootPath(LIBRARYPATH) - self.dirmodel.setNameFilters(["*.fcstd","*.FcStd","*.FCSTD","*.stp","*.STP","*.step","*.STEP"]) + self.dirmodel.setNameFilters(["*.fcstd","*.FcStd","*.FCSTD","*.stp","*.STP","*.step","*.STEP", "*.brep", "*.BREP"]) self.dirmodel.setNameFilterDisables(0) self.folder_view = QtGui.QTreeView(); @@ -95,7 +95,7 @@ class ExpDockWidget(QtGui.QDockWidget): def clicked(self, index): path = self.dirmodel.filePath(index) - if path.lower().endswith(".stp") or path.lower().endswith(".step"): + if path.lower().endswith(".stp") or path.lower().endswith(".step") or path.lower().endswith(".brep"): Part.show(Part.read(path)) else: FreeCADGui.ActiveDocument.mergeProject(path)