Cleaning up ARFrames

This commit is contained in:
Mathias Hauan Arbo 2019-03-03 13:21:06 +01:00
parent deb7384203
commit 23905b1000

View file

@ -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],