Merge pull request #5012 from luzpaz/pathjobgui-typo
Path: Fix PathScripts/PathJobGui.py typo bug
This commit is contained in:
@@ -144,7 +144,7 @@ def moveToGroup(group):
|
||||
|
||||
for obj in Gui.Selection.getSelection():
|
||||
try:
|
||||
#retreive group's visibility
|
||||
#retrieve group's visibility
|
||||
obj.ViewObject.Visibility = group.ViewObject.Visibility
|
||||
group.addObject(obj)
|
||||
|
||||
|
||||
@@ -26,16 +26,16 @@ import FreeCAD
|
||||
from draftobjects.hatch import Draft_Hatch_Object
|
||||
from draftviewproviders.view_hatch import Draft_Hatch_ViewProvider
|
||||
|
||||
def makeHatch(baseobject,filename,pattern,scale,rotation):
|
||||
def makeHatch(baseobject, filename, pattern, scale, rotation):
|
||||
|
||||
"""makeHatch(baseobject,filename,pattern,scale,rotation): Creates and returns a hatch
|
||||
object made by applying the given pattern of the given PAT file to the faces of the
|
||||
given base object. Given scale and rotation factors are applied to the hatch object.
|
||||
The result is a Part-based object created inthe active document."""
|
||||
"""makeHatch(baseobject, filename, pattern, scale, rotation): Creates and returns a
|
||||
hatch object made by applying the given pattern of the given PAT file to the faces of
|
||||
the given base object. Given scale and rotation factors are applied to the hatch object.
|
||||
The result is a Part-based object created in the active document."""
|
||||
|
||||
if not FreeCAD.ActiveDocument:
|
||||
return
|
||||
obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Hatch")
|
||||
obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "Hatch")
|
||||
Draft_Hatch_Object(obj)
|
||||
obj.Base = baseobject
|
||||
obj.File = filename
|
||||
|
||||
@@ -460,7 +460,7 @@ class StockCreateBoxEdit(StockEdit):
|
||||
|
||||
def getFields(self, obj, fields=None):
|
||||
if fields is None:
|
||||
fields = ["length", "widht", "height"]
|
||||
fields = ["length", "width", "height"]
|
||||
try:
|
||||
if self.IsStock(obj):
|
||||
if "length" in fields:
|
||||
|
||||
Reference in New Issue
Block a user