From 23905b1000c56191551e6da4f59008111d859f8f Mon Sep 17 00:00:00 2001 From: Mathias Hauan Arbo Date: Sun, 3 Mar 2019 13:21:06 +0100 Subject: [PATCH] Cleaning up ARFrames --- ARFrames.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ARFrames.py b/ARFrames.py index d4faea0..7b47ab7 100644 --- a/ARFrames.py +++ b/ARFrames.py @@ -172,7 +172,8 @@ class ViewProviderFrame(object): return "Shaded" def getIcon(self): - icondir = os.path.join(FreeCAD.getUserAppDataDir(), "Mod", __workbenchname__, "UI", "icons") + icondir = os.path.join(FreeCAD.getUserAppDataDir(), + "Mod", __workbenchname__, "UI", "icons") return str(os.path.join(icondir, "frame.svg")) def onChanged(self, vp, prop): @@ -256,7 +257,7 @@ def makeFeatureFrame(part, featurepl): obj = FreeCAD.ActiveDocument.addObject("App::FeaturePython", "FeatureFrame") FeatureFrame(obj, part, featurepl) - # If we're >0.16, add the feature frame to the assembly + # If we're >0.16, add the feature frame to the assembly if int(FreeCAD.Version()[1]) > 16: geo_feature_group = part.getParentGeoFeatureGroup() geo_feature_group.addObject(obj) @@ -620,7 +621,6 @@ class PointOnSurfacePanel(BaseFeaturePanel): self.form.UBox.setValue(value[0]) self.form.VBox.setValue(value[1]) - def p2mm(self, value): parameter_range = self.selected.SubObjects[0].ParameterRange delta = [parameter_range[1] - parameter_range[0],